~mil/ppbbq10

cafdd2d5d06342579a906597c1715c24965fb915 — Miles Alan 9 months ago bd694cd
Disable backlight functionality
1 files changed, 11 insertions(+), 10 deletions(-)

M ppbbq10.c
M ppbbq10.c => ppbbq10.c +11 -10
@@ 233,16 233,17 @@ ppbbq10_probe(struct i2c_client *client, const struct i2c_device_id *id)
	if (error)
		return -ENODEV;

	bd = devm_backlight_device_register(dev, client->name, dev,
					    drv_data,
					    &backlight_ops,
					    &backlight_props);
	if (IS_ERR(bd))
		return PTR_ERR(bd);

	error = backlight_update_status(bd);
	if (error)
		return -ENODEV;
	// TODO: cleanup
	//bd = devm_backlight_device_register(dev, client->name, dev,
	//				    drv_data,
	//				    &backlight_ops,
	//				    &backlight_props);
	//if (IS_ERR(bd))
	//	return PTR_ERR(bd);

	//error = backlight_update_status(bd);
	//if (error)
	//	return -ENODEV;

	input = devm_input_allocate_device(dev);
	if (!input)