[Intel-gfx] [RFC PATCH i-g-t] lib/sysfs: Add support for getting boolean module parameters

2019-12-10 Thread Janusz Krzysztofik
Boolean module parameters are exposed as "Y"/"N" strings, not 0/1. Make igt_sysfs_get_boolean() helper useful for getting their values. Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson --- lib/igt_sysfs.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git

Re: [Intel-gfx] [RFC PATCH i-g-t] lib/sysfs: Add support for getting boolean module parameters

2019-12-10 Thread Chris Wilson
Quoting Janusz Krzysztofik (2019-12-10 14:25:31) > Boolean module parameters are exposed as "Y"/"N" strings, not 0/1. > Make igt_sysfs_get_boolean() helper useful for getting their values. > > Signed-off-by: Janusz Krzysztofik > Cc: Chris Wilson > --- > lib/igt_sysfs.c | 14 +- > 1