BZ: 29806
Using hard coding GPIO pin for KPD LED on Lexington before IAFW adding
the corresponding GPIO pin in SFI table.
Change-Id: I462ce163c94f5ff3abb86f39cec58a7a4b9bfb75
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42832
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
return -ENOMEM;
}
+ /* Revert me:
+ * Using hard coding here, will revert after
+ * IAFW support for KPD LED GPIO is available
+ */
ret = get_gpio_by_name("intel_kpd_led");
if (ret == -1) {
pr_err("Failed to get KPD LED gpio pin from SFI table\n");
- return -ENODEV;
- }
+ pdata.gpio = 133; /* hard coding */
+ } else
+ pdata.gpio = ret;
- pdata.gpio = ret;
pdev->dev.platform_data = &pdata;
return platform_device_add(pdev);