Skip to content

Commit 1a2010c

Browse files
committed
drm/i915: Use bool i915_param.alpha_support
The alpha_support module option can only take one of two values, so assign it to a boolean type. The only advantage is in pretty printing via /sys/module/i915/parameters/alpha_support and elsewhere. Signed-off-by: Chris Wilson <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Rodrigo Vivi <[email protected]> Cc: Daniel Vetter <[email protected]> Acked-by: Jani Nikula <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b8cf691 commit 1a2010c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ MODULE_PARM_DESC(enable_psr, "Enable PSR "
145145
"(0=disabled, 1=enabled - link mode chosen per-platform, 2=force link-standby mode, 3=force link-off mode) "
146146
"Default: -1 (use per-chip default)");
147147

148-
module_param_named_unsafe(alpha_support, i915.alpha_support, int, 0400);
148+
module_param_named_unsafe(alpha_support, i915.alpha_support, bool, 0400);
149149
MODULE_PARM_DESC(alpha_support,
150150
"Enable alpha quality driver support for latest hardware. "
151151
"See also CONFIG_DRM_I915_ALPHA_SUPPORT.");

drivers/gpu/drm/i915/i915_params.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
func(int, enable_ppgtt); \
4141
func(int, enable_execlists); \
4242
func(int, enable_psr); \
43-
func(unsigned int, alpha_support); \
4443
func(int, disable_power_well); \
4544
func(int, enable_ips); \
4645
func(int, invert_brightness); \
@@ -52,6 +51,7 @@
5251
func(int, edp_vswing); \
5352
func(unsigned int, inject_load_failure); \
5453
/* leave bools at the end to not create holes */ \
54+
func(bool, alpha_support); \
5555
func(bool, enable_cmd_parser); \
5656
func(bool, enable_hangcheck); \
5757
func(bool, fastboot); \

0 commit comments

Comments
 (0)