lkml.org 
[lkml]   [2021]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v3 2/3] regmap-irq: Add support for POLARITY_HI and POLARITY_LO config regs
On Mon, Mar 15, 2021 at 01:33:37PM -0700, Guru Das Srinagesh wrote:

> Since I do need to write to two extra registers, I'll need two
> register_base's and two buffers to hold their data. This can be
> generalized to "extra config registers" in the framework as follows:
>
> - Add these two fields to `struct regmap_irq_chip`:
>
> unsigned int *extra_config_base; /* Points to array of extra regs */
> int num_extra_config_regs; /* = ARRAY_SIZE(array above) */

I'm having a hard time loving this but I'm also not able to think of any
better ideas so sure. I'd change the name to virtual (or virt) rather
than extra since that's what they are so it makes it a bit omre clear.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-03-17 21:44    [W:0.097 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site