lkml.org 
[lkml]   [2012]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 1/2] regulator: tps51632: add register property for regmap
On Tue, Dec 25, 2012 at 08:35:59PM +0530, Laxman Dewangan wrote:
> All TPS51632 registers are not readable/writable and
> non-volatiles.

Applied both, thanks, but you might wish to consider...

> +static bool is_read_reg(struct device *dev, unsigned int reg)
> +{
> + switch (reg) {
> + case 0x08 ... 0x0F:
> + return false;
> + default:
> + return true;
> + }
> +}

...using the new table based stuff for the access checks, at least this
one seems to map on nicely.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-12-27 19:01    [W:0.039 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site