linux-next: manual merge of the iio tree with the iio-fixes tree
Subsystems (3)
Mark Brown
maintainerHi all,
Today's linux-next merge of the iio tree got a conflict in:
drivers/iio/humidity/hid-sensor-humidity.c
between commit:
340d44bdf9db0 ("iio: humidity: hid-sensor-humidity: Use per-instance callbacks")
from the iio-fixes tree and commit:
5ee5d306f1bd1 ("iio: humidity: hid-sensor-humidity: convert probe and teardown to devm-managed resources")
from the iio tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/iio/humidity/hid-sensor-humidity.c +0 -0
@@@ -236,39 -241,13 +237,17 @@@ static int hid_humidity_probe(struct plplatform_set_drvdata (pdev, indio_dev); - humidity_callbacks.pdev = pdev; + humid_st->callbacks = (struct hid_sensor_hub_callbacks ) { + .send_event = humidity_proc_event, + .capture_sample = humidity_capture_sample, + .pdev = pdev, + }; - ret =sensor_hub_register_callback (hsdev,HID_USAGE_SENSOR_HUMIDITY , + ret =devm_sensor_hub_register_callback (dev, hsdev,HID_USAGE_SENSOR_HUMIDITY , - &humidity_callbacks); + &humid_st->callbacks);if (ret) - goto error_remove_trigger; +return ret; - ret =iio_device_register (indio_dev); -if (ret) - goto error_remove_callback; - -return ret; - - error_remove_callback: -sensor_hub_remove_callback (hsdev,HID_USAGE_SENSOR_HUMIDITY ); - error_remove_trigger: -hid_sensor_remove_trigger (indio_dev, &humid_st->common_attributes); -return ret; - } - -/* Function to deinitialize the processing for usage id */ -static void hid_humidity_remove (struct platform_device *pdev) - { -struct hid_sensor_hub_device *hsdev =dev_get_platdata (&pdev->dev); -struct iio_dev *indio_dev =platform_get_drvdata (pdev); -struct hid_humidity_state *humid_st =iio_priv (indio_dev); - -iio_device_unregister (indio_dev); -sensor_hub_remove_callback (hsdev,HID_USAGE_SENSOR_HUMIDITY ); -hid_sensor_remove_trigger (indio_dev, &humid_st->common_attributes); +return devm_iio_device_register (dev, indio_dev); }static const struct platform_device_id hid_humidity_ids[] = {
Hi Mark,
Quoted 12 lines · Mark Brown
Today's linux-next merge of the iio tree got a conflict in:
drivers/iio/humidity/hid-sensor-humidity.cbetween commit:
340d44bdf9db0("iio: humidity: hid-sensor-humidity: Use per-instance callbacks")from the iio-fixes tree and commit:
5ee5d306f1bd1("iio: humidity: hid-sensor-humidity: convert probe and teardown to devm-managed resources")
Quoted 8 lines
from the iio tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
Thanks for your resolution!
Quoted 6 lines
drivers/iio/humidity/hid-sensor-humidity.c +0
-0@@@ -236,39 -241,13 +237,17 @@@ static int hid_humidity_probe(struct plplatform_set_drvdata (pdev, indio_dev);
drivers/iio/humidity/hid-sensor-humidity.c
Quoted 10 lines
drivers/iio/humidity/hid-sensor-humidity.c +1
-1- humidity_callbacks.pdev = pdev; + humid_st->callbacks = (struct hid_sensor_hub_callbacks ) { + .send_event = humidity_proc_event, + .capture_sample = humidity_capture_sample, + .pdev = pdev, + }; - ret =sensor_hub_register_callback (hsdev,HID_USAGE_SENSOR_HUMIDITY , + ret =devm_sensor_hub_register_callback (dev, hsdev,HID_USAGE_SENSOR_HUMIDITY , - &humidity_callbacks); + &humid_st->callbacks);
The continuation is now misaligned.
Quoted 1 line
if (ret)
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds