Skip to content

Commit

Permalink
i2c: piix4: Always use the same type for port
Browse files Browse the repository at this point in the history
Sometimes u8 is used to store the port number, sometimes unsigned
short is used. Consistently stick to a single type, for consistency
and to avoid implicit casts.

Signed-off-by: Jean Delvare <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
jdelvare authored and Wolfram Sang committed Feb 24, 2016
1 parent 6befa3f commit 62194e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-piix4.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct i2c_piix4_adapdata {

/* SB800 */
bool sb800_main;
unsigned short port;
u8 port;
};

static int piix4_setup(struct pci_dev *PIIX4_dev,
Expand Down Expand Up @@ -655,7 +655,7 @@ static struct i2c_adapter *piix4_main_adapters[PIIX4_MAX_ADAPTERS];
static struct i2c_adapter *piix4_aux_adapter;

static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba,
bool sb800_main, unsigned short port,
bool sb800_main, u8 port,
const char *name, struct i2c_adapter **padap)
{
struct i2c_adapter *adap;
Expand Down

0 comments on commit 62194e8

Please sign in to comment.