1
0
Fork 0
alistair23-linux/drivers/regulator
Axel Lin baf73e2c4e regulator: lp872x: Return -EINVAL if pdata is NULL
Return -EINVAL if pdata is NULL, otherwise we have NULL dereference bug.
This patch also moves the code checking pdata earlier in lp872x_probe.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-06-20 11:18:38 +01:00
..
88pm8607.c regulator: 88pm8607: Use regulator_get_voltage_sel_regmap() 2012-05-04 13:32:06 +01:00
Kconfig regulator: lp872x: Don't allow modular build 2012-06-20 11:08:43 +01:00
Makefile regulator: add new regulator driver for lp872x 2012-06-19 23:14:29 +01:00
aat2870-regulator.c regulator: Remove unneeded include of linux/delay.h from regulator drivers 2012-04-23 13:20:26 +01:00
ab3100.c regulator: ab3100: Convert fixed voltage to use regulator_list_voltage_linear 2012-06-17 21:05:28 +01:00
ab8500.c regulator: ab8500: Remove min_uV and max_uV from struct ab8500_regulator_info 2012-06-17 21:04:45 +01:00
ad5398.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
anatop-regulator.c regulator: anatop: Convert to set_voltage_sel and regulator_map_voltage_linear 2012-06-11 12:01:41 +08:00
core.c regulator: core: Change the unit of ramp_delay from mV/uS to uV/uS 2012-06-18 10:56:58 +01:00
da903x.c regulator: da903x: Don't read/write to DA9030_INVAL/DA9034_INVAL address 2012-06-08 07:29:47 +08:00
da9052-regulator.c regulator: da9052: Convert to set_voltage_sel and map_voltage 2012-05-16 09:48:57 +01:00
db8500-prcmu.c regulator: Change db8500-prcmu match names to reflect Device Tree 2012-06-03 13:25:06 +01:00
dbx500-prcmu.c regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dbx500-prcmu.h regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dummy.c regulator: dummy: Specify a struct device 2012-05-10 10:48:28 +01:00
dummy.h regulator: fix build when CONFIG_REGULATOR_DUMMY=n 2010-10-28 22:40:32 +01:00
fixed-helper.c regulator: Remove non-existent parameter from fixed-helper.c kernel doc 2012-03-31 19:41:20 +01:00
fixed.c regulator: fixed: Use of_match_ptr() for of_match_table entry 2012-06-03 13:25:05 +01:00
gpio-regulator.c regulator: Remove unneeded include of linux/delay.h from regulator drivers 2012-04-23 13:20:26 +01:00
isl6271a-regulator.c regulator: isl6271a: Remove setting map_voltage callback for isl_fixed_ops 2012-06-11 12:01:40 +08:00
lp872x.c regulator: lp872x: Return -EINVAL if pdata is NULL 2012-06-20 11:18:38 +01:00
lp3971.c regulator: lp3971: Use regulator_list_voltage_table() 2012-06-03 13:25:02 +01:00
lp3972.c regulator: lp3972: Use regulator_list_voltage_table() 2012-06-03 13:25:01 +01:00
max1586.c regulator: max1586: Convert max1586_v3_ops to set_voltage_sel and map_voltage_linear 2012-06-08 08:48:23 +08:00
max8649.c regulator: max8649: Remove unused check_range() function 2012-05-17 23:00:55 +01:00
max8660.c regulator: max8660: Convert to set_voltage_sel and regulator_map_voltage_linear 2012-05-15 18:35:42 +01:00
max8925-regulator.c regulator: max8925: Remove check_range function and max_uV from struct rc5t583_regulator_info 2012-05-17 23:00:56 +01:00
max8952.c regulator: max8952: Use devm_kzalloc 2012-05-16 09:48:37 +01:00
max8997.c regulator updates for 3.5 2012-05-21 16:49:16 -07:00
max8998.c regulator: max8998: Convert ot use devm_kzalloc 2012-04-23 13:20:27 +01:00
max77686.c regulator: max77686: Implement .set_ramp_delay() callback 2012-06-20 11:15:13 +01:00
mc13xxx-regulator-core.c regulator: mc13xxx: Remove mc13xxx_sw_regulator_is_enabled function 2012-06-19 12:06:25 +01:00
mc13xxx.h regulator: mc13xxx: Remove mc13xxx_sw_regulator_is_enabled function 2012-06-19 12:06:25 +01:00
mc13783-regulator.c regulator: mc13xxx: Convert to regulator_list_voltage_table 2012-06-17 21:01:21 +01:00
mc13892-regulator.c regulator: mc13xxx: Remove mc13xxx_sw_regulator_is_enabled function 2012-06-19 12:06:25 +01:00
of_regulator.c regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints 2012-06-18 10:46:57 +01:00
palmas-regulator.c regulator: palmas: Slightly code change for better readability 2012-06-08 07:36:38 +08:00
pcap-regulator.c regulator: pcap: Convert to regulator_list_voltage_table 2012-06-08 07:37:29 +08:00
pcf50633-regulator.c regulator: pcf50633: Convert to regulator_set_voltage_sel_regmap and map_voltage 2012-06-17 21:05:28 +01:00
rc5t583-regulator.c regulator: rc5t583: Simplify rc5t583_set_voltage_time_sel implementation 2012-06-08 07:29:48 +08:00
s5m8767.c regulator: s5m8767a: Support AP watchdog reset operation 2012-06-19 12:06:32 +01:00
tps6105x-regulator.c regulator: tps6105x: Use regulator_list_voltage_table() 2012-06-03 13:25:01 +01:00
tps6507x-regulator.c regulator: tps6507x: Avoid duplicating the same mapping table for LDO2 and VDCDCx 2012-06-05 11:20:53 +01:00
tps6524x-regulator.c regulator: Convert tps65xxx regulator drivers to use devm_kzalloc 2012-04-11 10:16:50 +01:00
tps6586x-regulator.c regulator: tps6586x: Convert to regulator_list_voltage_table 2012-06-08 07:52:59 +08:00
tps62360-regulator.c regulator: tps62360: Simplify tps62360_set_voltage_time_sel implementation 2012-06-17 21:01:21 +01:00
tps65023-regulator.c regulator: tps65023: Convert tps65023_ldo_ops to regulator_[get|set]_voltage_sel_regmap 2012-06-19 12:14:11 +01:00
tps65090-regulator.c Merge remote-tracking branch 'regulator/topic/drivers' into regulator-next 2012-05-12 11:10:25 +01:00
tps65217-regulator.c regulator: tps65217: Convert to regulator_[is_enabled|get_voltage_sel]_regmap 2012-06-13 18:57:56 +01:00
tps65910-regulator.c regulator: tps65910: Don't use 0 as NULL 2012-06-18 11:12:21 +01:00
tps65912-regulator.c regulator: tps65912: Convert to get_voltage_sel 2012-04-23 13:20:27 +01:00
twl-regulator.c regulator: twl: Remove references to 32kHz clock from DT bindings 2012-06-18 13:40:14 +01:00
userspace-consumer.c regulator: userspace-consumer: Convert to use devm_* APIs 2012-04-18 10:26:24 +01:00
virtual.c regulator: virtual: Replace strict_strtol with kstrtol 2012-04-19 13:48:34 +01:00
wm831x-dcdc.c regulator: wm831x-dcdc: Convert wm831x_buckv_ops to set_voltage_sel and map_voltage 2012-06-17 21:07:19 +01:00
wm831x-isink.c MFD changes for 3.5 2012-05-29 11:53:11 -07:00
wm831x-ldo.c regulator: wm831x-ldo: Convert to regulator_set_voltage_sel_regmap and map_voltage 2012-06-17 21:07:19 +01:00
wm8350-regulator.c regulator: wm8350: Reuse map_voltage() to get selector of a given uV 2012-06-17 20:53:58 +01:00
wm8400-regulator.c regulator: wm8400: Adjust the equation for selector >= 15 in wm8400_ldo_list_voltage 2012-06-13 18:53:23 +01:00
wm8994-regulator.c regulator: wm8994: Convert wm8994_ldo1_ops to regulator_[list|map]_voltage_linear 2012-06-03 13:25:05 +01:00