ionic: Use debugfs_create_bool() to export bool
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 5 May 2020 13:28:09 +0000 (15:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:46:33 +0000 (17:46 -0700)
commit0735ccc9d9a4ce09154395feb70b804de7cc6ebf
treef4e4ca1a451ac7fb416c120e2a8142305fe79de9
parent050569fc8384c8056bacefcc246bcb2dfe574936
ionic: Use debugfs_create_bool() to export bool

Currently bool ionic_cq.done_color is exported using
debugfs_create_u8(), which requires a cast, preventing further compiler
checks.

Fix this by switching to debugfs_create_bool(), and dropping the cast.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c