summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/Kconfig
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2020-12-01 21:45:00 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-03 02:16:29 +0100
commit65fe1acf07d76198c77a9c9a672928c539bcbc72 (patch)
treeb647a1a6856955165ae967f8cf5325567bd5e901 /drivers/firewire/Kconfig
parentnet: dsa: microchip: ksz8795: use reg_mib_cnt where possible (diff)
downloadlinux-65fe1acf07d76198c77a9c9a672928c539bcbc72.tar.xz
linux-65fe1acf07d76198c77a9c9a672928c539bcbc72.zip
net: dsa: microchip: ksz8795: use mib_cnt where possible
The variable mib_cnt is assigned with TOTAL_SWITCH_COUNTER_NUM. This value can also be derived from the array size of mib_names. This patch uses this calculated value instead, removes the extra define and uses mib_cnt everywhere possible instead of the static define TOTAL_SWITCH_COUNTER_NUM. Keeping it in a separate variable instead of using ARRAY_SIZE everywhere instead makes the driver more flexible for future use of devices with different amount of counters. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/firewire/Kconfig')
0 files changed, 0 insertions, 0 deletions