Commit ec4fcc6b authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/ZYOsUfKceOFXuCt5@google.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 992bbc9e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -9,11 +9,12 @@
#include <linux/errno.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeirq.h>
#include <linux/property.h>
#include <linux/workqueue.h>
#include <linux/regmap.h>
#include <linux/of.h>
#include <linux/mfd/da9063/core.h>
#include <linux/mfd/da9063/registers.h>
#include <linux/mfd/da9062/core.h>
@@ -199,7 +200,7 @@ static int da9063_onkey_probe(struct platform_device *pdev)
		return dev_err_probe(&pdev->dev, -ENXIO,
				     "Parent regmap unavailable.\n");

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

	onkey->input = devm_input_allocate_device(&pdev->dev);