rsi: use BUILD_BUG_ON check for fsm_state
authorAmitkumar Karwar <amit.karwar@redpinesignals.com>
Thu, 6 Jul 2017 14:37:04 +0000 (20:07 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:22:32 +0000 (17:22 +0300)
commite0d0ae8a4304ce6be488570d085bef278fe941dd
treeffd3aa240dea8cfb69766d56c31133830f17c5b8
parent1283c6174d919c6ea42fe5781ed0fb3e41bc568c
rsi: use BUILD_BUG_ON check for fsm_state

Whenever new fsm_state enum element is added, fsm_state array
also needs to be updated. If this change is missed, we may end
up doing invalid access in array. BUILD_BUG_ON check will help
to avoid this problem.

Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_debugfs.c
drivers/net/wireless/rsi/rsi_main.h