drivers/rtc/rtc-rx8581.c: add SMBus-only adapters support
authorAndreas Werner <andreas.werner@men.de>
Thu, 23 Jan 2014 23:55:20 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:00 +0000 (16:37 -0800)
commitd643a49ae16c755b3dc2ef897438b7d9c6dd488b
treed42119aac86d8ef8a9410620a57bd10eccff2c6c
parent11ba5a1eeb5406c58ffda0fc07360b2ef5c4f176
drivers/rtc/rtc-rx8581.c: add SMBus-only adapters support

Add support for SMBus-only adapters (e.g.  i2c-piix4).  The driver has
implemented only support for I2C adapters which implement the
I2C_FUNC_SMBUS_I2C_BLOCK functionality before.

With this patch it is possible to load and use the RTC driver with I2C and
SMBUS adapters like the rtc-ds1307 does.

Tested on AMD G Series Platform (i2c-piix4 adapter driver).

Signed-off-by: Andreas Werner <andreas.werner@men.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-rx8581.c