lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 15 Nov 2015 11:12:20 +0000
From:	Jonathan Cameron <jic23@...nel.org>
To:	Nizam Haider <nizamhaider786@...il.com>, gregkh@...uxfoundation.org
Cc:	knaack.h@....de, lars@...afoo.de, pmeerw@...erw.net, marex@...x.de,
	stefan.wahren@...e.com, kristina.martsenko@...il.com,
	ciorneiioana@...il.com, hamohammed.sa@...il.com,
	alexandre.belloni@...e-electrons.com, linux-iio@...r.kernel.org,
	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
	Nizam Haider <nijamh@...c.in>
Subject: Re: [PATCH] iio: adc: mxs-lradc: Prefer using the BIT macro

On 09/11/15 14:26, Nizam Haider wrote:
> Replaces bit shifting on 1 with the BIT(x) macro
> 
> Signed-off-by: Nizam Haider <nijamh@...c.in>
Applied to the togreg branch of iio.git - guess I'm going to start
getting the autobuilder warnings shortly!

Will be pushed out as testing for the autobuilders to play with it.

Jonathan
> ---
>  drivers/staging/iio/adc/mxs-lradc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c
> index d997d9c..5f1375c 100644
> --- a/drivers/staging/iio/adc/mxs-lradc.c
> +++ b/drivers/staging/iio/adc/mxs-lradc.c
> @@ -324,7 +324,7 @@ struct mxs_lradc {
>  #define	LRADC_DELAY_TRIGGER(x) \
>  				(((x) << LRADC_DELAY_TRIGGER_LRADCS_OFFSET) & \
>  				LRADC_DELAY_TRIGGER_LRADCS_MASK)
> -#define	LRADC_DELAY_KICK			(1 << 20)
> +#define	LRADC_DELAY_KICK			BIT(20)
>  #define	LRADC_DELAY_TRIGGER_DELAYS_MASK		(0xf << 16)
>  #define	LRADC_DELAY_TRIGGER_DELAYS_OFFSET	16
>  #define	LRADC_DELAY_TRIGGER_DELAYS(x) \
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ