}
priv->socdata = socdata;
+ desc->name = dev->driver->name;
desc->pctlops = &uniphier_pctlops;
desc->pmxops = &uniphier_pmxops;
desc->confops = &uniphier_confops;
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-ld4-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_ld4_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE,
8, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_ld4_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_ld4_pins,
.npins = ARRAY_SIZE(uniphier_ld4_pins),
};
static struct platform_driver uniphier_ld4_pinctrl_driver = {
.probe = uniphier_ld4_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-ld4-pinctrl",
.of_match_table = uniphier_ld4_pinctrl_match,
},
};
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-ld6b-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_ld6b_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE,
0, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_ld6b_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_ld6b_pins,
.npins = ARRAY_SIZE(uniphier_ld6b_pins),
};
static struct platform_driver uniphier_ld6b_pinctrl_driver = {
.probe = uniphier_ld6b_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-ld6b-pinctrl",
.of_match_table = uniphier_ld6b_pinctrl_match,
},
};
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-pro4-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_pro4_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "CK24O", UNIPHIER_PIN_IECTRL_NONE,
0, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_pro4_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_pro4_pins,
.npins = ARRAY_SIZE(uniphier_pro4_pins),
};
static struct platform_driver uniphier_pro4_pinctrl_driver = {
.probe = uniphier_pro4_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-pro4-pinctrl",
.of_match_table = uniphier_pro4_pinctrl_match,
},
};
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-pro5-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_pro5_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "AEXCKA1", 0,
0, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_pro5_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_pro5_pins,
.npins = ARRAY_SIZE(uniphier_pro5_pins),
};
static struct platform_driver uniphier_pro5_pinctrl_driver = {
.probe = uniphier_pro5_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-pro5-pinctrl",
.of_match_table = uniphier_pro5_pinctrl_match,
},
};
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-pxs2-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_pxs2_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE,
0, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_pxs2_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_pxs2_pins,
.npins = ARRAY_SIZE(uniphier_pxs2_pins),
};
static struct platform_driver uniphier_pxs2_pinctrl_driver = {
.probe = uniphier_pxs2_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-pxs2-pinctrl",
.of_match_table = uniphier_pxs2_pinctrl_match,
},
};
#include "pinctrl-uniphier.h"
-#define DRIVER_NAME "uniphier-sld8-pinctrl"
-
static const struct pinctrl_pin_desc uniphier_sld8_pins[] = {
UNIPHIER_PINCTRL_PIN(0, "PCA00", 0,
15, UNIPHIER_PIN_DRV_4_8,
};
static struct pinctrl_desc uniphier_sld8_pinctrl_desc = {
- .name = DRIVER_NAME,
.pins = uniphier_sld8_pins,
.npins = ARRAY_SIZE(uniphier_sld8_pins),
};
static struct platform_driver uniphier_sld8_pinctrl_driver = {
.probe = uniphier_sld8_pinctrl_probe,
.driver = {
- .name = DRIVER_NAME,
+ .name = "uniphier-sld8-pinctrl",
.of_match_table = uniphier_sld8_pinctrl_match,
},
};