Accept input-name from devtree.
Bug
1449481
Change-Id: Icdc5cb82485a40f55895c49854bebcc6e38c7799
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/386485
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Optional properties:
- autorepeat: Boolean, Enable auto repeat feature of Linux input
subsystem.
+ - input-name: String, Input device name "/sys/class/input/inputX/name"
Each button (key) is represented as a sub-node of "gpio-keys":
Subnode properties:
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
+ input-name = "gpio-keys";
button@21 {
label = "GPIO Key UP";
linux,code = <103>;
pdata->nbuttons = nbuttons;
pdata->rep = !!of_get_property(node, "autorepeat", NULL);
+ pdata->name = of_get_property(node, "input-name", NULL);
i = 0;
for_each_child_of_node(node, pp) {