lkml.org 
[lkml]   [2012]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio: msic: Fix calculating register address in msic_gpio_to_oreg()
From
On Tue, Jul 24, 2012 at 12:35 PM, Axel Lin <axel.lin@gmail.com> wrote:

> In the case offset is 20 ... 23, the equation to get the register should be:
> INTEL_MSIC_GPIO1HV0CTLO - offset + 20
>
> With above equation, we can get below mapping between offset and the register:
> offset is 20: INTEL_MSIC_GPIO1HV0CTLO
> offset is 21: INTEL_MSIC_GPIO1HV1CTLO
> offset is 22: INTEL_MSIC_GPIO1HV2CTLO
> offset is 23: INTEL_MSIC_GPIO1HV3CTLO
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Thanks, applied to my fixes branch with Mathias' ACK.

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2012-08-05 01:41    [W:0.440 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site