[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120629154135.GL22806@sortiz-mobl>
Date: Fri, 29 Jun 2012 17:41:35 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: Richard Zhao <richard.zhao@...escale.com>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
paul.liu@...aro.org, shawn.guo@...aro.org,
Richard Zhao <richard.zhao@...aro.org>
Subject: Re: [PATCH RESEND] mfd: anatop: permit adata be NULL when access
register
Hi Richard,
On Mon, Jun 04, 2012 at 09:56:29AM +0800, Richard Zhao wrote:
> From: Richard Zhao <richard.zhao@...aro.org>
>
> It makes anatop register access easier. Anatop has many misc registers,
> which may not be a specific driver.
>
> There's only one anatop device for a running system, so we use a global
> variable to store struct anatop.
Even though I understand it's quite unlikely that you'll never get 2 anatop
blocks on the same system, the below patch is not really nice.
Please make your driver support N > 1 instances of your hardware, even though
it's only for the sake of code cleanness.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
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