]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: qcom: Remove unused macro definitions
authorNavya Malempati <navya.malempati@oss.qualcomm.com>
Fri, 29 May 2026 10:43:01 +0000 (16:13 +0530)
committerLinus Walleij <linusw@kernel.org>
Thu, 11 Jun 2026 12:06:47 +0000 (14:06 +0200)
The macros QUP_I3C and UFS_RESET are defined in some platforms
and yet not used. Remove these macros as they are unnecessary.

Signed-off-by: Navya Malempati <navya.malempati@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/qcom/pinctrl-qcs8300.c
drivers/pinctrl/qcom/pinctrl-qdu1000.c
drivers/pinctrl/qcom/pinctrl-sa8775p.c

index 852cd36df6d5fc6d0aece7d57f8f59fe48c0cfee..9a904d809e11daa71b41fcb42b7c145017998673 100644 (file)
                .intr_detection_width = -1,             \
        }
 
-#define QUP_I3C(qup_mode, qup_offset)                  \
-       {                                               \
-               .mode = qup_mode,                       \
-               .offset = qup_offset,                   \
-       }
-
 #define QUP_I3C_6_MODE_OFFSET  0xaf000
 #define QUP_I3C_7_MODE_OFFSET  0xb0000
 #define QUP_I3C_13_MODE_OFFSET 0xb1000
index 77da87aa72aa2b631fdc24def7d651b6c8a8ffff..1ef77f82820c5895acf31f0b3f420e633b022102 100644 (file)
                .intr_detection_width = -1,             \
        }
 
-#define UFS_RESET(pg_name, offset)                             \
-       {                                               \
-               .grp = PINCTRL_PINGROUP(#pg_name,       \
-                       pg_name##_pins,                 \
-                       ARRAY_SIZE(pg_name##_pins)),    \
-               .ctl_reg = offset,                      \
-               .io_reg = offset + 0x4,                 \
-               .intr_cfg_reg = 0,                      \
-               .intr_status_reg = 0,                   \
-               .mux_bit = -1,                          \
-               .pull_bit = 3,                          \
-               .drv_bit = 0,                           \
-               .oe_bit = -1,                           \
-               .in_bit = -1,                           \
-               .out_bit = 0,                           \
-               .intr_enable_bit = -1,                  \
-               .intr_status_bit = -1,                  \
-               .intr_target_bit = -1,                  \
-               .intr_raw_status_bit = -1,              \
-               .intr_polarity_bit = -1,                \
-               .intr_detection_bit = -1,               \
-               .intr_detection_width = -1,             \
-       }
-
 static const struct pinctrl_pin_desc qdu1000_pins[] = {
        PINCTRL_PIN(0, "GPIO_0"),
        PINCTRL_PIN(1, "GPIO_1"),
index e9a510d3583f5c392acb833be4ce67c6b421cd48..5dbaa50cbff008a2605876eb329496d305735700 100644 (file)
                .intr_detection_width = -1,             \
        }
 
-#define QUP_I3C(qup_mode, qup_offset)                  \
-       {                                               \
-               .mode = qup_mode,                       \
-               .offset = qup_offset,                   \
-       }
-
 #define QUP_I3C_6_MODE_OFFSET  0xAF000
 #define QUP_I3C_7_MODE_OFFSET  0xB0000
 #define QUP_I3C_13_MODE_OFFSET 0xB1000