pinctrl: intel: Get rid of unused members in struct intel_function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Dec 2022 12:42:40 +0000 (14:42 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Dec 2022 08:22:53 +0000 (10:22 +0200)
The driver has been converted to a generic data type and macro for
the pin function definition, hence get rid of not used members in
the struct intel_function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.h

index 91e5bedba00bb439f578f689fb2ef1f0d5eb7981..1faf2ada480a8e9af9bfe644269f6ea88144a15d 100644 (file)
@@ -37,15 +37,9 @@ struct intel_pingroup {
 /**
  * struct intel_function - Description about a function
  * @func: Generic data of the pin function (name and groups of pins)
- * @name: Name of the function
- * @groups: An array of groups for this function
- * @ngroups: Number of groups in @groups
  */
 struct intel_function {
        struct pinfunction func;
-       const char *name;
-       const char * const *groups;
-       size_t ngroups;
 };
 
 #define INTEL_PINCTRL_MAX_GPP_SIZE     32
@@ -188,9 +182,6 @@ struct intel_community {
 #define FUNCTION(n, g)                                                 \
        {                                                               \
                .func = PINCTRL_PINFUNCTION((n), (g), ARRAY_SIZE(g)),   \
-               .name = (n),                                            \
-               .groups = (g),                                          \
-               .ngroups = ARRAY_SIZE((g)),                             \
        }
 
 /**