diff mbox series

[1/2] drm: panel-orientation-quirks: Get rid of superfluous (void *) casting

Message ID 20190216195834.6245-1-howl.nsp@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/2] drm: panel-orientation-quirks: Get rid of superfluous (void *) casting | expand

Commit Message

kernel test robot via dri-devel Feb. 16, 2019, 7:58 p.m. UTC
From: howl <howl.nsp@gmail.com>

The (void *) casting in the driver_data variable assignment is superfluous.
Spotted by Jani Nikula.

Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Comments

Jani Nikula Feb. 18, 2019, 11:22 a.m. UTC | #1
On Sat, 16 Feb 2019, David Santamaría Rogado <howl.nsp@gmail.com> wrote:
> From: howl <howl.nsp@gmail.com>
>
> The (void *) casting in the driver_data variable assignment is superfluous.
> Spotted by Jani Nikula.
>
> Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index 52e445bb1aa5..61d3361381b7 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -86,13 +86,13 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
>  		},
> -		.driver_data = (void *)&acer_s1003,
> +		.driver_data = &acer_s1003,
>  	}, {	/* Asus T100HA */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
>  		},
> -		.driver_data = (void *)&asus_t100ha,
> +		.driver_data = &asus_t100ha,
>  	}, {	/*
>  		 * GPD Pocket, note that the the DMI data is less generic then
>  		 * it seems, devices with a board-vendor of "AMI Corporation"
> @@ -105,7 +105,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_pocket,
> +		.driver_data = &gpd_pocket,
>  	}, {	/* GPD Win (same note on DMI match as GPD Pocket) */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
> @@ -113,7 +113,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_win,
> +		.driver_data = &gpd_win,
>  	}, {	/* GPD Win 2 (too generic strings, also match on bios date) */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
> @@ -121,7 +121,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_win2,
> +		.driver_data = &gpd_win2,
>  	}, {	/* I.T.Works TW891 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
> @@ -129,7 +129,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
>  		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
>  		},
> -		.driver_data = (void *)&itworks_tw891,
> +		.driver_data = &itworks_tw891,
>  	}, {	/*
>  		 * Lenovo Ideapad Miix 310 laptop, only some production batches
>  		 * have a portrait screen, the resolution checks makes the quirk
> @@ -140,20 +140,20 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	}, {	/* Lenovo Ideapad Miix 320 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	}, {	/* VIOS LTH17 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	},
>  	{}
>  };
Thierry Reding Feb. 18, 2019, 3:25 p.m. UTC | #2
On Sat, Feb 16, 2019 at 08:58:33PM +0100, David Santamaría Rogado wrote:
> From: howl <howl.nsp@gmail.com>

Any reason why this differs from the Signed-off-by line? Perhaps check
your git configuration if this wasn't on purpose. Or perhaps you've
fixed the configuration since you authored the commits, in which case
you should be able to fix this by doing this:

	$ git commit --reset-author --amend

You'd need to run that for each of the commits.

Thierry

> 
> The (void *) casting in the driver_data variable assignment is superfluous.
> Spotted by Jani Nikula.
> 
> Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
> ---
>  drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index 52e445bb1aa5..61d3361381b7 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -86,13 +86,13 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
>  		},
> -		.driver_data = (void *)&acer_s1003,
> +		.driver_data = &acer_s1003,
>  	}, {	/* Asus T100HA */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
>  		},
> -		.driver_data = (void *)&asus_t100ha,
> +		.driver_data = &asus_t100ha,
>  	}, {	/*
>  		 * GPD Pocket, note that the the DMI data is less generic then
>  		 * it seems, devices with a board-vendor of "AMI Corporation"
> @@ -105,7 +105,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_pocket,
> +		.driver_data = &gpd_pocket,
>  	}, {	/* GPD Win (same note on DMI match as GPD Pocket) */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
> @@ -113,7 +113,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_win,
> +		.driver_data = &gpd_win,
>  	}, {	/* GPD Win 2 (too generic strings, also match on bios date) */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
> @@ -121,7 +121,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
>  		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
>  		},
> -		.driver_data = (void *)&gpd_win2,
> +		.driver_data = &gpd_win2,
>  	}, {	/* I.T.Works TW891 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
> @@ -129,7 +129,7 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
>  		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
>  		},
> -		.driver_data = (void *)&itworks_tw891,
> +		.driver_data = &itworks_tw891,
>  	}, {	/*
>  		 * Lenovo Ideapad Miix 310 laptop, only some production batches
>  		 * have a portrait screen, the resolution checks makes the quirk
> @@ -140,20 +140,20 @@ static const struct dmi_system_id orientation_data[] = {
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	}, {	/* Lenovo Ideapad Miix 320 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	}, {	/* VIOS LTH17 */
>  		.matches = {
>  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
>  		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
>  		},
> -		.driver_data = (void *)&lcd800x1280_rightside_up,
> +		.driver_data = &lcd800x1280_rightside_up,
>  	},
>  	{}
>  };
> -- 
> 2.20.1
>
David Santamaría Rogado Feb. 18, 2019, 5:47 p.m. UTC | #3
I have my mail and real name in git configuration but it has taken my
computer's username. I suppose there should be a way to make git to take
the real name I have set in it's configuration. Will check it and resend as
I won't do ammend cause I have signed of by all public commits as in these
patches. Wanted to bring this up at time for 5.0 to have it out of the box
in the next Fedora but I suppose is not going to be possible.

Thanks for the guidance you are giving to me.

El lunes, 18 de febrero de 2019, Thierry Reding <thierry.reding@gmail.com>
escribió:
> On Sat, Feb 16, 2019 at 08:58:33PM +0100, David Santamaría Rogado wrote:
>> From: howl <howl.nsp@gmail.com>
>
> Any reason why this differs from the Signed-off-by line? Perhaps check
> your git configuration if this wasn't on purpose. Or perhaps you've
> fixed the configuration since you authored the commits, in which case
> you should be able to fix this by doing this:
>
>         $ git commit --reset-author --amend
>
> You'd need to run that for each of the commits.
>
> Thierry
>
>>
>> The (void *) casting in the driver_data variable assignment is
superfluous.
>> Spotted by Jani Nikula.
>>
>> Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
>> ---
>>  drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 +++++++++---------
>>  1 file changed, 9 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c
b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> index 52e445bb1aa5..61d3361381b7 100644
>> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> @@ -86,13 +86,13 @@ static const struct dmi_system_id orientation_data[]
= {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
>>               },
>> -             .driver_data = (void *)&acer_s1003,
>> +             .driver_data = &acer_s1003,
>>       }, {    /* Asus T100HA */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
>>               },
>> -             .driver_data = (void *)&asus_t100ha,
>> +             .driver_data = &asus_t100ha,
>>       }, {    /*
>>                * GPD Pocket, note that the the DMI data is less generic
then
>>                * it seems, devices with a board-vendor of "AMI
Corporation"
>> @@ -105,7 +105,7 @@ static const struct dmi_system_id orientation_data[]
= {
>>                 DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>>               },
>> -             .driver_data = (void *)&gpd_pocket,
>> +             .driver_data = &gpd_pocket,
>>       }, {    /* GPD Win (same note on DMI match as GPD Pocket) */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
>> @@ -113,7 +113,7 @@ static const struct dmi_system_id orientation_data[]
= {
>>                 DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
>>               },
>> -             .driver_data = (void *)&gpd_win,
>> +             .driver_data = &gpd_win,
>>       }, {    /* GPD Win 2 (too generic strings, also match on bios
date) */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
>> @@ -121,7 +121,7 @@ static const struct dmi_system_id orientation_data[]
= {
>>                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
>>                 DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
>>               },
>> -             .driver_data = (void *)&gpd_win2,
>> +             .driver_data = &gpd_win2,
>>       }, {    /* I.T.Works TW891 */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by
O.E.M."),
>> @@ -129,7 +129,7 @@ static const struct dmi_system_id orientation_data[]
= {
>>                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by
O.E.M."),
>>                 DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
>>               },
>> -             .driver_data = (void *)&itworks_tw891,
>> +             .driver_data = &itworks_tw891,
>>       }, {    /*
>>                * Lenovo Ideapad Miix 310 laptop, only some production
batches
>>                * have a portrait screen, the resolution checks makes the
quirk
>> @@ -140,20 +140,20 @@ static const struct dmi_system_id
orientation_data[] = {
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
>>               },
>> -             .driver_data = (void *)&lcd800x1280_rightside_up,
>> +             .driver_data = &lcd800x1280_rightside_up,
>>       }, {    /* Lenovo Ideapad Miix 320 */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX
320-10ICR"),
>>               },
>> -             .driver_data = (void *)&lcd800x1280_rightside_up,
>> +             .driver_data = &lcd800x1280_rightside_up,
>>       }, {    /* VIOS LTH17 */
>>               .matches = {
>>                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
>>                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
>>               },
>> -             .driver_data = (void *)&lcd800x1280_rightside_up,
>> +             .driver_data = &lcd800x1280_rightside_up,
>>       },
>>       {}
>>  };
>> --
>> 2.20.1
>>
>
I have my mail and real name in git configuration but it has taken my computer&#39;s username. I suppose there should be a way to make git to take the real name I have set in it&#39;s configuration. Will check it and resend as I won&#39;t do ammend cause I have signed of by all public commits as in these patches. Wanted to bring this up at time for 5.0 to have it out of the box in the next Fedora but I suppose is not going to be possible.<br><br>Thanks for the guidance you are giving to me.<br><br>El lunes, 18 de febrero de 2019, Thierry Reding &lt;<a href="mailto:thierry.reding@gmail.com">thierry.reding@gmail.com</a>&gt; escribió:<br>&gt; On Sat, Feb 16, 2019 at 08:58:33PM +0100, David Santamaría Rogado wrote:<br>&gt;&gt; From: howl &lt;<a href="mailto:howl.nsp@gmail.com">howl.nsp@gmail.com</a>&gt;<br>&gt;<br>&gt; Any reason why this differs from the Signed-off-by line? Perhaps check<br>&gt; your git configuration if this wasn&#39;t on purpose. Or perhaps you&#39;ve<br>&gt; fixed the configuration since you authored the commits, in which case<br>&gt; you should be able to fix this by doing this:<br>&gt;<br>&gt;         $ git commit --reset-author --amend<br>&gt;<br>&gt; You&#39;d need to run that for each of the commits.<br>&gt;<br>&gt; Thierry<br>&gt;<br>&gt;&gt;<br>&gt;&gt; The (void *) casting in the driver_data variable assignment is superfluous.<br>&gt;&gt; Spotted by Jani Nikula.<br>&gt;&gt;<br>&gt;&gt; Signed-off-by: David Santamaría Rogado &lt;<a href="mailto:howl.nsp@gmail.com">howl.nsp@gmail.com</a>&gt;<br>&gt;&gt; ---<br>&gt;&gt;  drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 +++++++++---------<br>&gt;&gt;  1 file changed, 9 insertions(+), 9 deletions(-)<br>&gt;&gt;<br>&gt;&gt; diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c<br>&gt;&gt; index 52e445bb1aa5..61d3361381b7 100644<br>&gt;&gt; --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c<br>&gt;&gt; +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c<br>&gt;&gt; @@ -86,13 +86,13 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;Acer&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;One S1003&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;acer_s1003,<br>&gt;&gt; +             .driver_data = &amp;acer_s1003,<br>&gt;&gt;       }, {    /* Asus T100HA */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;ASUSTeK COMPUTER INC.&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;T100HAN&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;asus_t100ha,<br>&gt;&gt; +             .driver_data = &amp;asus_t100ha,<br>&gt;&gt;       }, {    /*<br>&gt;&gt;                * GPD Pocket, note that the the DMI data is less generic then<br>&gt;&gt;                * it seems, devices with a board-vendor of &quot;AMI Corporation&quot;<br>&gt;&gt; @@ -105,7 +105,7 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_SERIAL, &quot;Default string&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;Default string&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;gpd_pocket,<br>&gt;&gt; +             .driver_data = &amp;gpd_pocket,<br>&gt;&gt;       }, {    /* GPD Win (same note on DMI match as GPD Pocket) */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, &quot;AMI Corporation&quot;),<br>&gt;&gt; @@ -113,7 +113,7 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_SERIAL, &quot;Default string&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;Default string&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;gpd_win,<br>&gt;&gt; +             .driver_data = &amp;gpd_win,<br>&gt;&gt;       }, {    /* GPD Win 2 (too generic strings, also match on bios date) */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;Default string&quot;),<br>&gt;&gt; @@ -121,7 +121,7 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, &quot;Default string&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_NAME, &quot;Default string&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;gpd_win2,<br>&gt;&gt; +             .driver_data = &amp;gpd_win2,<br>&gt;&gt;       }, {    /* I.T.Works TW891 */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;To be filled by O.E.M.&quot;),<br>&gt;&gt; @@ -129,7 +129,7 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, &quot;To be filled by O.E.M.&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_BOARD_NAME, &quot;TW891&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;itworks_tw891,<br>&gt;&gt; +             .driver_data = &amp;itworks_tw891,<br>&gt;&gt;       }, {    /*<br>&gt;&gt;                * Lenovo Ideapad Miix 310 laptop, only some production batches<br>&gt;&gt;                * have a portrait screen, the resolution checks makes the quirk<br>&gt;&gt; @@ -140,20 +140,20 @@ static const struct dmi_system_id orientation_data[] = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;80SG&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, &quot;MIIX 310-10ICR&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;lcd800x1280_rightside_up,<br>&gt;&gt; +             .driver_data = &amp;lcd800x1280_rightside_up,<br>&gt;&gt;       }, {    /* Lenovo Ideapad Miix 320 */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;LENOVO&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;80XF&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, &quot;Lenovo MIIX 320-10ICR&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;lcd800x1280_rightside_up,<br>&gt;&gt; +             .driver_data = &amp;lcd800x1280_rightside_up,<br>&gt;&gt;       }, {    /* VIOS LTH17 */<br>&gt;&gt;               .matches = {<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, &quot;VIOS&quot;),<br>&gt;&gt;                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, &quot;LTH17&quot;),<br>&gt;&gt;               },<br>&gt;&gt; -             .driver_data = (void *)&amp;lcd800x1280_rightside_up,<br>&gt;&gt; +             .driver_data = &amp;lcd800x1280_rightside_up,<br>&gt;&gt;       },<br>&gt;&gt;       {}<br>&gt;&gt;  };<br>&gt;&gt; --<br>&gt;&gt; 2.20.1<br>&gt;&gt;<br>&gt;
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 52e445bb1aa5..61d3361381b7 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -86,13 +86,13 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
 		},
-		.driver_data = (void *)&acer_s1003,
+		.driver_data = &acer_s1003,
 	}, {	/* Asus T100HA */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
 		},
-		.driver_data = (void *)&asus_t100ha,
+		.driver_data = &asus_t100ha,
 	}, {	/*
 		 * GPD Pocket, note that the the DMI data is less generic then
 		 * it seems, devices with a board-vendor of "AMI Corporation"
@@ -105,7 +105,7 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
 		},
-		.driver_data = (void *)&gpd_pocket,
+		.driver_data = &gpd_pocket,
 	}, {	/* GPD Win (same note on DMI match as GPD Pocket) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
@@ -113,7 +113,7 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
 		},
-		.driver_data = (void *)&gpd_win,
+		.driver_data = &gpd_win,
 	}, {	/* GPD Win 2 (too generic strings, also match on bios date) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
@@ -121,7 +121,7 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
 		},
-		.driver_data = (void *)&gpd_win2,
+		.driver_data = &gpd_win2,
 	}, {	/* I.T.Works TW891 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
@@ -129,7 +129,7 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
 		},
-		.driver_data = (void *)&itworks_tw891,
+		.driver_data = &itworks_tw891,
 	}, {	/*
 		 * Lenovo Ideapad Miix 310 laptop, only some production batches
 		 * have a portrait screen, the resolution checks makes the quirk
@@ -140,20 +140,20 @@  static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
 		},
-		.driver_data = (void *)&lcd800x1280_rightside_up,
+		.driver_data = &lcd800x1280_rightside_up,
 	}, {	/* Lenovo Ideapad Miix 320 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
 		},
-		.driver_data = (void *)&lcd800x1280_rightside_up,
+		.driver_data = &lcd800x1280_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
 		},
-		.driver_data = (void *)&lcd800x1280_rightside_up,
+		.driver_data = &lcd800x1280_rightside_up,
 	},
 	{}
 };