Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: da9063_onkey - avoid using OF-specific APIs

There is nothing OF-specific in the driver, so switch from OF properties
helpers to generic device helpers.

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/ZYOsUfKceOFXuCt5@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+4 -3
+4 -3
drivers/input/misc/da9063_onkey.c
··· 9 9 #include <linux/errno.h> 10 10 #include <linux/input.h> 11 11 #include <linux/interrupt.h> 12 + #include <linux/mod_devicetable.h> 12 13 #include <linux/platform_device.h> 13 14 #include <linux/pm_wakeirq.h> 15 + #include <linux/property.h> 14 16 #include <linux/workqueue.h> 15 17 #include <linux/regmap.h> 16 - #include <linux/of.h> 17 18 #include <linux/mfd/da9063/core.h> 18 19 #include <linux/mfd/da9063/registers.h> 19 20 #include <linux/mfd/da9062/core.h> ··· 200 199 return dev_err_probe(&pdev->dev, -ENXIO, 201 200 "Parent regmap unavailable.\n"); 202 201 203 - onkey->key_power = !of_property_read_bool(pdev->dev.of_node, 204 - "dlg,disable-key-power"); 202 + onkey->key_power = !device_property_read_bool(&pdev->dev, 203 + "dlg,disable-key-power"); 205 204 206 205 onkey->input = devm_input_allocate_device(&pdev->dev); 207 206 if (!onkey->input)