[PATCH RESEND] Input: omap-keypad: dynamically handle register offsets
Felipe Balbi
balbi at ti.com
Tue Apr 10 05:24:43 EDT 2012
On Tue, Apr 03, 2012 at 10:52:26AM +0530, Sourav Poddar wrote:
> +static int kbd_write_irqstatus(struct omap4_keypad *keypad_data,
> + u32 offset, u32 value)
> +{
> + return __raw_writel(value, keypad_data->base + offset);
> +}
> +
> +static int kbd_write_irqenable(struct omap4_keypad *keypad_data,
> + u32 offset, u32 value)
> +{
> + return __raw_writel(value, keypad_data->base + offset);
> +}
if this only writes to irqenable, why do you pass offset as an argument?
likewise for irqstatus.
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120410/8f295da2/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list