i2c: Add support for device alias names
commitd2653e92732bd3911feff6bee5e23dbf959381db
authorJean Delvare <khali@linux-fr.org>
Tue, 29 Apr 2008 21:11:39 +0000 (29 23:11 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 29 Apr 2008 21:11:39 +0000 (29 23:11 +0200)
treefd3a413bc150855a09de29b2d253b7dbeb2705ff
parentee56d977423a58b53fd0fc1ef0aca0c9cb564c53
i2c: Add support for device alias names

Based on earlier work by Jon Smirl and Jochen Friedrich.

This patch allows new-style i2c chip drivers to have alias names using
the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
point, the old i2c driver binding scheme (driver_name/type) is still
supported.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jochen Friedrich <jochen@scram.de>
Cc: Jon Smirl <jonsmirl@gmail.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
43 files changed:
Documentation/i2c/writing-clients
drivers/gpio/pca953x.c
drivers/gpio/pcf857x.c
drivers/hwmon/f75375s.c
drivers/i2c/chips/ds1682.c
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/tps65010.c
drivers/i2c/chips/tsl2550.c
drivers/i2c/i2c-core.c
drivers/media/video/cs5345.c
drivers/media/video/cs53l32a.c
drivers/media/video/cx25840/cx25840-core.c
drivers/media/video/m52790.c
drivers/media/video/msp3400-driver.c
drivers/media/video/mt9m001.c
drivers/media/video/mt9v022.c
drivers/media/video/saa7115.c
drivers/media/video/saa7127.c
drivers/media/video/saa717x.c
drivers/media/video/tcm825x.c
drivers/media/video/tlv320aic23b.c
drivers/media/video/tuner-core.c
drivers/media/video/tvaudio.c
drivers/media/video/upd64031a.c
drivers/media/video/upd64083.c
drivers/media/video/v4l2-common.c
drivers/media/video/vp27smpx.c
drivers/media/video/wm8739.c
drivers/media/video/wm8775.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-ds1374.c
drivers/rtc/rtc-isl1208.c
drivers/rtc/rtc-m41t80.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-rs5c372.c
drivers/rtc/rtc-s35390a.c
drivers/rtc/rtc-x1205.c
include/linux/i2c.h
include/linux/mod_devicetable.h
include/media/v4l2-common.h
include/media/v4l2-i2c-drv-legacy.h
include/media/v4l2-i2c-drv.h
scripts/mod/file2alias.c