]> err.no Git - linux-2.6/commit
[PATCH] hwmon: hwmon vs i2c, second round (02/11)
authorJean Delvare <khali@linux-fr.org>
Sun, 31 Jul 2005 19:33:23 +0000 (21:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Sep 2005 16:14:18 +0000 (09:14 -0700)
commitef8dec5d8b3e96e359f377f35cd8caff42fe6d58
treeca83d278af5da3dfc9ef01f1d5bf479e67229d25
parent9fc6adfa9adf2be84119a3c2592287f33bd1dff2
[PATCH] hwmon: hwmon vs i2c, second round (02/11)

The way i2c-sensor handles forced addresses could be optimized. It
defines a structure (i2c_force_data) to associate a module parameter
with a given kind value, but in fact this kind value is always the
index of the structure in each array it is used in. So this additional
value can be omitted, and still be deduced in the code handling these
arrays.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-sensor-detect.c
include/linux/i2c-sensor.h