drm: sysfs: Replace magic number with DRM_FORCE_UNSPECIFIED macro
Subsystems (2)
PATCH 1/1 drm: sysfs: Replace magic number with DRM_FORCE_UNSPECIFIED macro
Replace the direct use of magic number '0' with the DRM_FORCE_UNSPECIFIED macro to improve code readability.
Signed-off-by hongao <[email protected]>
drivers/gpu/drm/drm_sysfs.c +1 -1
@@ -198,7 +198,7 @@ static ssize_t status_store(struct device *device, old_force = connector->force;if (sysfs_streq (buf,"detect" )) - connector->force =0 ; + connector->force =DRM_FORCE_UNSPECIFIED ;else if (sysfs_streq (buf,"on" )) connector->force =DRM_FORCE_ON ;else if (sysfs_streq (buf,"on-digital" ))
Signature · 1 line
2.33.1
Quoted 5 lines · hongao
Replace the direct use of magic number '0' with the
DRM_FORCE_UNSPECIFIEDmacro to improve code readability.Signed-off-by hongao <[email protected]>
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry