Re: [PATCH] drm/msm: Use str_enable_disable-like helpers

2025-02-26 Thread Dmitry Baryshkov
On Tue, 14 Jan 2025 20:17:24 +0100, Krzysztof Kozlowski wrote: > Replace ternary (condition ? "enable" : "disable") syntax with helpers > from string_choices.h because: > 1. Simple function call with one argument is easier to read. Ternary >operator has three arguments and with wrapping migh

Re: [PATCH] drm/msm: Use str_enable_disable-like helpers

2025-01-15 Thread Abhinav Kumar
On 1/14/2025 11:17 AM, Krzysztof Kozlowski wrote: Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite

[PATCH] drm/msm: Use str_enable_disable-like helpers

2025-01-14 Thread Krzysztof Kozlowski
Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite long code. 2. Is slightly shorter thus also easier to