diff mbox series

drm/i915/quirks: make intel_dpcd_quirks const

Message ID 20240919153354.1269295-1-jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/quirks: make intel_dpcd_quirks const | expand

Commit Message

Jani Nikula Sept. 19, 2024, 3:33 p.m. UTC
The array can be in rodate, make it const.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/display/intel_quirks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ville Syrjälä Sept. 19, 2024, 6:34 p.m. UTC | #1
On Thu, Sep 19, 2024 at 06:33:54PM +0300, Jani Nikula wrote:
> The array can be in rodate, make it const.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_quirks.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_quirks.c b/drivers/gpu/drm/i915/display/intel_quirks.c
> index 29b56d53a340..28f497ae785b 100644
> --- a/drivers/gpu/drm/i915/display/intel_quirks.c
> +++ b/drivers/gpu/drm/i915/display/intel_quirks.c
> @@ -231,7 +231,7 @@ static struct intel_quirk intel_quirks[] = {
>  	{ 0x0f31, 0x103c, 0x220f, quirk_invert_brightness },
>  };
>  
> -static struct intel_dpcd_quirk intel_dpcd_quirks[] = {
> +static const struct intel_dpcd_quirk intel_dpcd_quirks[] = {
>  	/* Dell Precision 5490 */
>  	{
>  		.device = 0x7d55,
> @@ -272,7 +272,7 @@ void intel_init_dpcd_quirks(struct intel_dp *intel_dp,
>  	int i;
>  
>  	for (i = 0; i < ARRAY_SIZE(intel_dpcd_quirks); i++) {
> -		struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
> +		const struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
>  
>  		if (d->device == q->device &&
>  		    (d->subsystem_vendor == q->subsystem_vendor ||
> -- 
> 2.39.2
Jani Nikula Sept. 23, 2024, 7:33 a.m. UTC | #2
On Thu, 19 Sep 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Thu, Sep 19, 2024 at 06:33:54PM +0300, Jani Nikula wrote:
>> The array can be in rodate, make it const.
>> 
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Thanks, pushed to din.

BR,
Jani.

>
>> ---
>>  drivers/gpu/drm/i915/display/intel_quirks.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/display/intel_quirks.c b/drivers/gpu/drm/i915/display/intel_quirks.c
>> index 29b56d53a340..28f497ae785b 100644
>> --- a/drivers/gpu/drm/i915/display/intel_quirks.c
>> +++ b/drivers/gpu/drm/i915/display/intel_quirks.c
>> @@ -231,7 +231,7 @@ static struct intel_quirk intel_quirks[] = {
>>  	{ 0x0f31, 0x103c, 0x220f, quirk_invert_brightness },
>>  };
>>  
>> -static struct intel_dpcd_quirk intel_dpcd_quirks[] = {
>> +static const struct intel_dpcd_quirk intel_dpcd_quirks[] = {
>>  	/* Dell Precision 5490 */
>>  	{
>>  		.device = 0x7d55,
>> @@ -272,7 +272,7 @@ void intel_init_dpcd_quirks(struct intel_dp *intel_dp,
>>  	int i;
>>  
>>  	for (i = 0; i < ARRAY_SIZE(intel_dpcd_quirks); i++) {
>> -		struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
>> +		const struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
>>  
>>  		if (d->device == q->device &&
>>  		    (d->subsystem_vendor == q->subsystem_vendor ||
>> -- 
>> 2.39.2
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_quirks.c b/drivers/gpu/drm/i915/display/intel_quirks.c
index 29b56d53a340..28f497ae785b 100644
--- a/drivers/gpu/drm/i915/display/intel_quirks.c
+++ b/drivers/gpu/drm/i915/display/intel_quirks.c
@@ -231,7 +231,7 @@  static struct intel_quirk intel_quirks[] = {
 	{ 0x0f31, 0x103c, 0x220f, quirk_invert_brightness },
 };
 
-static struct intel_dpcd_quirk intel_dpcd_quirks[] = {
+static const struct intel_dpcd_quirk intel_dpcd_quirks[] = {
 	/* Dell Precision 5490 */
 	{
 		.device = 0x7d55,
@@ -272,7 +272,7 @@  void intel_init_dpcd_quirks(struct intel_dp *intel_dp,
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(intel_dpcd_quirks); i++) {
-		struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
+		const struct intel_dpcd_quirk *q = &intel_dpcd_quirks[i];
 
 		if (d->device == q->device &&
 		    (d->subsystem_vendor == q->subsystem_vendor ||