Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1644570

Re: [PATCH v3 2/7] staging: sm750fb: unifying macro usage and definitions

From Greg KH <greg@kroah.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/7] staging: sm750fb: unifying macro usage and definitions
Date 2017-05-18 16:00 +0200
Message-ID <tIu8a-3sl-9@gated-at.bofh.it> (permalink)
References <tHwc1-57T-7@gated-at.bofh.it> <tHGXM-3Nc-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 16, 2017 at 11:20:18AM +0200, Matej Dujava wrote:
> This patch adds tabs into macro definitions so all rhs are on same column.
> Move MHz macro from ddk_chip.c to ddk_chip.h.
> 
> Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
> ---
>  drivers/staging/sm750fb/ddk750_chip.c    | 18 ++++----
>  drivers/staging/sm750fb/ddk750_chip.h    |  5 +-
>  drivers/staging/sm750fb/ddk750_display.h | 78 ++++++++++++++++----------------
>  drivers/staging/sm750fb/ddk750_hwi2c.c   |  4 +-
>  drivers/staging/sm750fb/sm750.h          |  6 +--
>  5 files changed, 55 insertions(+), 56 deletions(-)
> 
> diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
> index 944dd25..64d0a53 100644
> --- a/drivers/staging/sm750fb/ddk750_chip.c
> +++ b/drivers/staging/sm750fb/ddk750_chip.c
> @@ -5,8 +5,6 @@
>  #include "ddk750_chip.h"
>  #include "ddk750_power.h"
>  
> -#define MHz(x) ((x) * 1000000)
> -
>  static logical_chip_type_t chip;
>  
>  logical_chip_type_t sm750_get_chip_type(void)
> @@ -36,7 +34,7 @@ static unsigned int get_mxclk_freq(void)
>  	unsigned int M, N, OD, POD;
>  
>  	if (sm750_get_chip_type() == SM750LE)
> -		return MHz(130);
> +		return MHZ(130);

But MHz makes more sense, don't you think so?

Please leave that as-is.

thanks,

greg k-h

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v3 2/7] staging: sm750fb: unifying macro usage and definitions Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 11:30 +0200
  Re: [PATCH v3 2/7] staging: sm750fb: unifying macro usage and  definitions Greg KH <greg@kroah.com> - 2017-05-18 16:00 +0200

csiph-web