Skip to content

Commit ec4fcc6

Browse files
committed
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>
1 parent 992bbc9 commit ec4fcc6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/input/misc/da9063_onkey.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
#include <linux/errno.h>
1010
#include <linux/input.h>
1111
#include <linux/interrupt.h>
12+
#include <linux/mod_devicetable.h>
1213
#include <linux/platform_device.h>
1314
#include <linux/pm_wakeirq.h>
15+
#include <linux/property.h>
1416
#include <linux/workqueue.h>
1517
#include <linux/regmap.h>
16-
#include <linux/of.h>
1718
#include <linux/mfd/da9063/core.h>
1819
#include <linux/mfd/da9063/registers.h>
1920
#include <linux/mfd/da9062/core.h>
@@ -199,8 +200,8 @@ static int da9063_onkey_probe(struct platform_device *pdev)
199200
return dev_err_probe(&pdev->dev, -ENXIO,
200201
"Parent regmap unavailable.\n");
201202

202-
onkey->key_power = !of_property_read_bool(pdev->dev.of_node,
203-
"dlg,disable-key-power");
203+
onkey->key_power = !device_property_read_bool(&pdev->dev,
204+
"dlg,disable-key-power");
204205

205206
onkey->input = devm_input_allocate_device(&pdev->dev);
206207
if (!onkey->input)

0 commit comments

Comments
 (0)