linux/drivers/w1/slaves
NeilBrown 9f3519d2ed w1: Fix w1_bq27000
w1_bq27000 adds a bq27000-battery platform device but does not provide
platform data for it. This causes the bq27x00 driver to dereference a NULL
pointer.
So provide the appropriate platform data.  This requires modifying
w1_bq27000_read so that it find the w1 device as the parent of the bq device.

Also there is no point exporting w1_bq27000_read as nothing else uses it
or could use it.  So make it static.

Finally, as there is no way to track how many batteries have been found, and
we will probably only find one, use an id number of '-1' to assert that this
is a unique instance.

Signed-off-by: NeilBrown <neilb@suse.de>
Tested-by: Thomas Weber <weber@corscience.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-15 17:17:50 -08:00
..
Kconfig w1: add Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC support 2011-05-26 17:12:38 -07:00
Makefile w1: add Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC support 2011-05-26 17:12:38 -07:00
w1_bq27000.c w1: Fix w1_bq27000 2012-02-15 17:17:50 -08:00
w1_ds2408.c w1: fix for loop in w1_f29_remove_slave() 2011-08-25 16:25:33 -07:00
w1_ds2423.c w1: DS2423 counter driver and documentation 2011-01-13 08:03:22 -08:00
w1_ds2431.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
w1_ds2433.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
w1_ds2760.c w1: ds2760 and ds2780, use ida for id and ida_simple_get() to get it 2011-11-02 16:07:02 -07:00
w1_ds2760.h w1: ds2760_battery: add support for sleep mode feature 2009-06-08 23:25:17 +04:00
w1_ds2780.c drivers/power/ds2780_battery.c: add a nolock function to w1 interface 2011-11-02 16:07:03 -07:00
w1_ds2780.h drivers/power/ds2780_battery.c: add a nolock function to w1 interface 2011-11-02 16:07:03 -07:00
w1_smem.c MAINTAINERS: Evgeniy has moved 2011-08-25 16:25:33 -07:00
w1_therm.c W1: w1_therm: release the bus during conversion on externally powered devices 2011-11-17 11:47:56 -08:00