diff options
author | Jean Delvare <jdelvare@suse.de> | 2016-01-29 12:45:30 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-02-24 17:59:05 +0300 |
commit | 62194e869a56bf9d6fc10b6bdf8f11b1c4386249 (patch) | |
tree | 07f396ffaed20b71faf1206bcd89da16e7911f00 /drivers/i2c | |
parent | 6befa3fde65fe437f588da490c07a114393ce229 (diff) | |
download | linux-62194e869a56bf9d6fc10b6bdf8f11b1c4386249.tar.xz |
i2c: piix4: Always use the same type for port
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 <jdelvare@suse.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-piix4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index 78d4483d2d5c..fe2dd07d80f6 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c @@ -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, @@ -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; |