summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-creative-sb0540.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2023-05-26 10:34:42 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-05-30 10:48:17 +0300
commitb8311f46c6f5a2030f43c764e742015867293493 (patch)
tree6c8d5a1d10169c86f79593a5d21ea73d9e0436c8 /drivers/hid/hid-creative-sb0540.c
parent2f0d579956e87a67c43e225c85488ff7a13bc3b8 (diff)
downloadlinux-b8311f46c6f5a2030f43c764e742015867293493.tar.xz
net: dsa: microchip: add an enum for regmap widths
It is not immediately obvious that this driver allocates, via the KSZ_REGMAP_TABLE() macro, 3 regmaps for register access: dev->regmap[0] for 8-bit access, dev->regmap[1] for 16-bit and dev->regmap[2] for 32-bit access. In future changes that add support for reg_fields, each field will have to specify through which of the 3 regmaps it's going to go. Add an enum now, to denote one of the 3 register access widths, and make the code go through some wrapper functions for easier review and further modification. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/hid/hid-creative-sb0540.c')
0 files changed, 0 insertions, 0 deletions