diff mbox series

pinctrl: sh-pfc: r8a77995: Remove unused PINMUX_IPSR_{MSEL2,PHYS}()

Message ID 20181119102152.5144-1-geert+renesas@glider.be
State New
Headers show
Series pinctrl: sh-pfc: r8a77995: Remove unused PINMUX_IPSR_{MSEL2,PHYS}() | expand

Commit Message

Geert Uytterhoeven Nov. 19, 2018, 10:21 a.m. UTC
The PINMUX_IPSR_MSEL2() and PINMUX_IPSR_PHYS() macros are unused, and
will conflict with generic macros that are to be added.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To be queued in sh-pfc-for-v4.21, before "pinctrl: sh-pfc: Add physical
pin multiplexing helper macros".

 drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Simon Horman Nov. 19, 2018, 10:54 a.m. UTC | #1
On Mon, Nov 19, 2018 at 11:21:52AM +0100, Geert Uytterhoeven wrote:
> The PINMUX_IPSR_MSEL2() and PINMUX_IPSR_PHYS() macros are unused, and
> will conflict with generic macros that are to be added.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> To be queued in sh-pfc-for-v4.21, before "pinctrl: sh-pfc: Add physical
> pin multiplexing helper macros".

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

> 
>  drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> index 9484eaa8522aec6f..e457539a61c55bb9 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> @@ -468,12 +468,6 @@ enum {
>  #undef FM
>  };
>  
> -#define PINMUX_IPSR_MSEL2(ipsr, fn, msel1, msel2) \
> -	PINMUX_DATA(fn##_MARK, FN_##msel1, FN_##msel2, FN_##fn, FN_##ipsr)
> -
> -#define PINMUX_IPSR_PHYS(ipsr, fn, msel) \
> -	PINMUX_DATA(fn##_MARK, FN_##msel)
> -
>  static const u16 pinmux_data[] = {
>  	PINMUX_DATA_GP_ALL(),
>  
> -- 
> 2.17.1
>
diff mbox series

Patch

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
index 9484eaa8522aec6f..e457539a61c55bb9 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
@@ -468,12 +468,6 @@  enum {
 #undef FM
 };
 
-#define PINMUX_IPSR_MSEL2(ipsr, fn, msel1, msel2) \
-	PINMUX_DATA(fn##_MARK, FN_##msel1, FN_##msel2, FN_##fn, FN_##ipsr)
-
-#define PINMUX_IPSR_PHYS(ipsr, fn, msel) \
-	PINMUX_DATA(fn##_MARK, FN_##msel)
-
 static const u16 pinmux_data[] = {
 	PINMUX_DATA_GP_ALL(),