OSDN Git Service

Input: iqs626a - drop unused device node references
authorJeff LaBundy <jeff@labundy.com>
Fri, 27 Jan 2023 22:29:41 +0000 (16:29 -0600)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 4 Feb 2023 01:21:04 +0000 (17:21 -0800)
commit4d3d2694e168c542b088eef5059d31498f679020
treed996486f8beb6c07ad07250167b77aaf302b1f44
parentd94962401cabebe9f81abb24645e376fd19b0aac
Input: iqs626a - drop unused device node references

Each call to device/fwnode_get_named_child_node() must be matched
with a call to fwnode_handle_put() once the corresponding node is
no longer in use. This ensures a reference count remains balanced
in the case of dynamic device tree support.

Currently, the driver never calls fwnode_handle_put(); this patch
adds the missing calls. Because fwnode_handle_put() does not take
a const *fwnode_handle, the const qualifier is removed across all
corresponding *fwnode_handle instances.

As part of this change, trackpad channel touch thresholds and ATI
base values are now specified under single trackpad channel child
nodes. This enhancement moves both properties to scalar values as
opposed to arrays, making their types consistent across bindings.

Fixes: f1d2809de97a ("Input: Add support for Azoteq IQS626A")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/Y9RQVe/V1Hnw1oly@nixie71
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs626a.c