|
@@ -136,10 +136,12 @@ static const struct pinconf_generic_params pmic_gpio_bindings[] = {
|
|
|
{"qcom,drive-strength", PMIC_GPIO_CONF_STRENGTH, 0},
|
|
|
};
|
|
|
|
|
|
+#ifdef CONFIG_DEBUG_FS
|
|
|
static const struct pin_config_item pmic_conf_items[ARRAY_SIZE(pmic_gpio_bindings)] = {
|
|
|
PCONFDUMP(PMIC_GPIO_CONF_PULL_UP, "pull up strength", NULL, true),
|
|
|
PCONFDUMP(PMIC_GPIO_CONF_STRENGTH, "drive-strength", NULL, true),
|
|
|
};
|
|
|
+#endif
|
|
|
|
|
|
static const char *const pmic_gpio_groups[] = {
|
|
|
"gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", "gpio8",
|
|
@@ -744,7 +746,9 @@ static int pmic_gpio_probe(struct platform_device *pdev)
|
|
|
pctrldesc->npins = npins;
|
|
|
pctrldesc->num_custom_params = ARRAY_SIZE(pmic_gpio_bindings);
|
|
|
pctrldesc->custom_params = pmic_gpio_bindings;
|
|
|
+#ifdef CONFIG_DEBUG_FS
|
|
|
pctrldesc->custom_conf_items = pmic_conf_items;
|
|
|
+#endif
|
|
|
|
|
|
for (i = 0; i < npins; i++, pindesc++) {
|
|
|
pad = &pads[i];
|