[PATCH] mx28: added LRADC and touchscreen support

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Nov 24 16:11:25 EST 2011


On Thu, Nov 24, 2011 at 12:49:54PM +0100, Peter Rusko wrote:
> +	struct resource res[] = {
> +		{
> +			.start = MX28_LRADC_BASE_ADDR,
> +			.end = MX28_LRADC_BASE_ADDR + SZ_16K - 1,
> +			.flags = IORESOURCE_MEM,
> +		},

The other thing which I forgot to mention is...

	struct resource res[] = {
		DEFINE_RES_MEM(MX28_LRADC_BASE_ADDR, SZ_16K),
	};

is much neater.



More information about the linux-arm-kernel mailing list