i2c: piix4: don't regress on bus names
authorJean Delvare <jdelvare@suse.de>
Wed, 27 Jan 2016 13:40:33 +0000 (14:40 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 29 Jan 2016 10:13:52 +0000 (11:13 +0100)
commit52795f6fdeb8a2b98373108ac2838c674bb2cbc4
tree1cb9265cf92e8d4ff82a7d770bc8bd5b5f3e019a
parent08c6e8cc66282a082484480c1a5641bc27d26c55
i2c: piix4: don't regress on bus names

The I2C bus names are supposed to be stable as they can be used by
userspace to uniquely identify a specific I2C bus. So restore the
original names for all legacy (pre-SB800) devices.

For SB800 devices and later, improve the names. "SDA" refers to the
serial data pin of each SMBus port, it's an implementation detail the
user doesn't need to know. Use "port" instead, which is easier to
understand.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Christian Fetzer <fetzer.ch@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c