]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit550dc2059a8834c10f7af03a16d9f843d22ca80c
treef4e4ca1a451ac7fb416c120e2a8142305fe79de9
parent2a91fa7b4f6c33a165a2c9605cc95fb72d1b23e3
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