linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blackfin: convert pinmux request API into empty static inline functions for bf609 and bf548
@ 2015-02-06  9:41 Sonic Zhang
  2015-02-06 23:30 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Sonic Zhang @ 2015-02-06  9:41 UTC (permalink / raw)
  To: Steven Miao, adi-buildroot-devel
  Cc: Dmitry Torokhov, linux-input, Sonic Zhang

From: Sonic Zhang <sonic.zhang@analog.com>

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
 arch/blackfin/include/asm/portmux.h |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/arch/blackfin/include/asm/portmux.h b/arch/blackfin/include/asm/portmux.h
index ccb96ca..2f6893e 100644
--- a/arch/blackfin/include/asm/portmux.h
+++ b/arch/blackfin/include/asm/portmux.h
@@ -23,10 +23,17 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state);
 #define gpio_pint_regs bfin_pint_regs
 #define adi_internal_set_wake bfin_internal_set_wake
 
-#define peripheral_request(per, label) (0)
-#define peripheral_free(per)
-#define peripheral_request_list(per, label) (0)
-#define peripheral_free_list(per)
+static inline int peripheral_request(unsigned short per, const char *label)
+{
+	return 0;
+}
+static inline void peripheral_free(unsigned short per) {}
+static inline int peripheral_request_list(const unsigned short per[],
+					  const char *label)
+{
+	return 0;
+}
+static inline void peripheral_free_list(const unsigned short per[]) {}
 int pinmux_request(unsigned short per, const char *label);
 void pinmux_free(unsigned short per);
 int pinmux_request_list(const unsigned short per[], const char *label);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] blackfin: convert pinmux request API into empty static inline functions for bf609 and bf548
  2015-02-06  9:41 [PATCH] blackfin: convert pinmux request API into empty static inline functions for bf609 and bf548 Sonic Zhang
@ 2015-02-06 23:30 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2015-02-06 23:30 UTC (permalink / raw)
  To: Sonic Zhang; +Cc: Steven Miao, adi-buildroot-devel, linux-input, Sonic Zhang

On Fri, Feb 06, 2015 at 05:41:39PM +0800, Sonic Zhang wrote:
> From: Sonic Zhang <sonic.zhang@analog.com>
> 
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

I do not think arch changes shoudl go through my tree though...

> ---
>  arch/blackfin/include/asm/portmux.h |   15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/blackfin/include/asm/portmux.h b/arch/blackfin/include/asm/portmux.h
> index ccb96ca..2f6893e 100644
> --- a/arch/blackfin/include/asm/portmux.h
> +++ b/arch/blackfin/include/asm/portmux.h
> @@ -23,10 +23,17 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state);
>  #define gpio_pint_regs bfin_pint_regs
>  #define adi_internal_set_wake bfin_internal_set_wake
>  
> -#define peripheral_request(per, label) (0)
> -#define peripheral_free(per)
> -#define peripheral_request_list(per, label) (0)
> -#define peripheral_free_list(per)
> +static inline int peripheral_request(unsigned short per, const char *label)
> +{
> +	return 0;
> +}
> +static inline void peripheral_free(unsigned short per) {}
> +static inline int peripheral_request_list(const unsigned short per[],
> +					  const char *label)
> +{
> +	return 0;
> +}
> +static inline void peripheral_free_list(const unsigned short per[]) {}
>  int pinmux_request(unsigned short per, const char *label);
>  void pinmux_free(unsigned short per);
>  int pinmux_request_list(const unsigned short per[], const char *label);
> -- 
> 1.7.9.5
> 

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-06 23:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06  9:41 [PATCH] blackfin: convert pinmux request API into empty static inline functions for bf609 and bf548 Sonic Zhang
2015-02-06 23:30 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).