]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: ab8500-debugfs: Prevent initialised field from being over-written
authorLee Jones <lee.jones@linaro.org>
Wed, 14 Sep 2016 10:14:30 +0000 (11:14 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:05 +0000 (15:48 +0100)
commitb46a2999d9fec976be3d1325cdd30a5064765934
tree176ec4ff25fca237c097002844522053be9fe291
parent3f39a66987beb4c480633a406870923252f3c2e3
mfd: ab8500-debugfs: Prevent initialised field from being over-written

Due to the lack of parity in the way array fields have been named/
numbered, a mistake was made where more debug fields were declared
than actually existed.  In doing so, 2 fields were added, which
although unclear, were already declared in the array.  The result
was that the latter declarations trashed the former ones.

This patch places the array back in the correct order and removes
the offending NULL entries.

While we're at it, let's ensure this doesn't happen again by naming
each field properly and add a new *_LAST define to describe how
many fields there should be.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-debugfs.c
include/linux/mfd/abx500/ab8500.h