]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: cy8c95x0: Drop unused 'name' in struct cy8c95x0_pinctrl
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Feb 2026 18:06:56 +0000 (19:06 +0100)
committerLinus Walleij <linusw@kernel.org>
Thu, 26 Feb 2026 22:42:35 +0000 (23:42 +0100)
The 'name' is only assigned and never used. Drop it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinctrl-cy8c95x0.c

index cd1c5cedfeda3df8321ccea91c7710fe03c8c587..7b35b86c6d4625775af24ca880cb93471fc52619 100644 (file)
@@ -147,7 +147,6 @@ static const struct dmi_system_id cy8c95x0_dmi_acpi_irq_info[] = {
  * @dev:            struct device
  * @pctldev:        pin controller device
  * @pinctrl_desc:   pin controller description
- * @name:           Chip controller name
  * @tpin:           Total number of pins
  * @gpio_reset:     GPIO line handler that can reset the IC
  */
@@ -167,7 +166,6 @@ struct cy8c95x0_pinctrl {
        struct device *dev;
        struct pinctrl_dev *pctldev;
        struct pinctrl_desc pinctrl_desc;
-       char name[32];
        unsigned int tpin;
        struct gpio_desc *gpio_reset;
 };
@@ -1414,15 +1412,12 @@ static int cy8c95x0_probe(struct i2c_client *client)
 
        switch (chip->tpin) {
        case 20:
-               strscpy(chip->name, cy8c95x0_id[0].name);
                regmap_range_conf.range_max = CY8C95X0_VIRTUAL + 3 * MUXED_STRIDE - 1;
                break;
        case 40:
-               strscpy(chip->name, cy8c95x0_id[1].name);
                regmap_range_conf.range_max = CY8C95X0_VIRTUAL + 6 * MUXED_STRIDE - 1;
                break;
        case 60:
-               strscpy(chip->name, cy8c95x0_id[2].name);
                regmap_range_conf.range_max = CY8C95X0_VIRTUAL + 8 * MUXED_STRIDE - 1;
                break;
        default: