lkml.org 
[lkml]   [2014]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCHv2 3/3] regmap: add DT endianness binding support.
Date

> Subject: Re: [PATCHv2 3/3] regmap: add DT endianness binding support.
>
> On Wed, Apr 02, 2014 at 06:09:09PM +0800, Xiubo Li wrote:
>
> > + ret = of_regmap_get_endian(dev, bus, config, "reg_endian", &reg_endian);
> > + if (ret)
> > + return ERR_PTR(ret);
> > +
> > + ret = of_regmap_get_endian(dev, bus, config, "val_endian", &val_endian);
> > + if (ret)
> > + return ERR_PTR(ret);
>
> Actually, if we're going to be doing this for all devices then we
> probably need to namespace the properties too. Not sure what to do for
> a prefix though. One for the DT folks.

How about using one prefix string of each regmap bus?
Such as:
Prefix 'regmap-mmio' for regmap-mmio,
Prefix 'regmap-i2c' for regmap-i2c,
Precix 'regmap-spi' for regmap-spi
...

Or just using the same prefix 'regmap' for all of them ?

Thanks,

BRs
Xiubo


\
 
 \ /
  Last update: 2014-04-03 10:12    [W:0.072 / U:1.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site