Skip to content

Commit 642aadf

Browse files
Paolo Peregogregkh
authored andcommitted
staging:fbtft: Using str_true_false() helper instead of hardcoded strings
Using str_true_false() helper instead of hardcoded strings. Signed-off-by: Paolo Perego <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cdd30eb commit 642aadf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/staging/fbtft/fb_ssd1351.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <linux/init.h>
77
#include <linux/spi/spi.h>
88
#include <linux/delay.h>
9+
#include <linux/string_choices.h>
910

1011
#include "fbtft.h"
1112

@@ -162,7 +163,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves)
162163
static int blank(struct fbtft_par *par, bool on)
163164
{
164165
fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
165-
__func__, on ? "true" : "false");
166+
__func__, str_true_false(on));
166167
if (on)
167168
write_reg(par, 0xAE);
168169
else

0 commit comments

Comments
 (0)