i2c: piix4: Pre-shift the port number
commit33f5ccc343b7d15ea53f29be21dded7e38dd6c2d
authorJean Delvare <jdelvare@suse.de>
Fri, 29 Jan 2016 09:46:37 +0000 (29 10:46 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 24 Feb 2016 14:59:06 +0000 (24 15:59 +0100)
treedd7bfb5c009fc56eea48226f5255702788b3e380
parent62194e869a56bf9d6fc10b6bdf8f11b1c4386249
i2c: piix4: Pre-shift the port number

Shift the port number at initialization time, so that it is ready to
use at run time. That way we don't have to do it again for every SMBus
transaction.

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>
drivers/i2c/busses/i2c-piix4.c