* [PATCH] video: fbdev: nvidia: Remove dead code
@ 2019-07-10 18:16 Souptick Joarder
2019-07-22 8:26 ` Souptick Joarder
0 siblings, 1 reply; 3+ messages in thread
From: Souptick Joarder @ 2019-07-10 18:16 UTC (permalink / raw)
To: adaplas, b.zolnierkie
Cc: linux-fbdev, dri-devel, linux-kernel, sabyasachi.linux, Souptick Joarder
This is dead code since 3.15. If there is no plan to use it
further, this can be removed forever.
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
---
drivers/video/fbdev/nvidia/nv_setup.c | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/drivers/video/fbdev/nvidia/nv_setup.c b/drivers/video/fbdev/nvidia/nv_setup.c
index b17acd2..2fa6866 100644
--- a/drivers/video/fbdev/nvidia/nv_setup.c
+++ b/drivers/video/fbdev/nvidia/nv_setup.c
@@ -119,34 +119,10 @@ u8 NVReadMiscOut(struct nvidia_par *par)
{
return (VGA_RD08(par->PVIO, VGA_MIS_R));
}
-#if 0
-void NVEnablePalette(struct nvidia_par *par)
-{
- volatile u8 tmp;
-
- tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a);
- VGA_WR08(par->PCIO, VGA_ATT_IW, 0x00);
- par->paletteEnabled = 1;
-}
-void NVDisablePalette(struct nvidia_par *par)
-{
- volatile u8 tmp;
-
- tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a);
- VGA_WR08(par->PCIO, VGA_ATT_IW, 0x20);
- par->paletteEnabled = 0;
-}
-#endif /* 0 */
void NVWriteDacMask(struct nvidia_par *par, u8 value)
{
VGA_WR08(par->PDIO, VGA_PEL_MSK, value);
}
-#if 0
-u8 NVReadDacMask(struct nvidia_par *par)
-{
- return (VGA_RD08(par->PDIO, VGA_PEL_MSK));
-}
-#endif /* 0 */
void NVWriteDacReadAddr(struct nvidia_par *par, u8 value)
{
VGA_WR08(par->PDIO, VGA_PEL_IR, value);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] video: fbdev: nvidia: Remove dead code
2019-07-10 18:16 [PATCH] video: fbdev: nvidia: Remove dead code Souptick Joarder
@ 2019-07-22 8:26 ` Souptick Joarder
2019-07-23 15:36 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 3+ messages in thread
From: Souptick Joarder @ 2019-07-22 8:26 UTC (permalink / raw)
To: adaplas, b.zolnierkie
Cc: linux-fbdev, dri-devel, linux-kernel, Sabyasachi Gupta
On Wed, Jul 10, 2019 at 11:41 PM Souptick Joarder <jrdr.linux@gmail.com> wrote:
>
> This is dead code since 3.15. If there is no plan to use it
> further, this can be removed forever.
Any comment on this patch ?
>
> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
> ---
> drivers/video/fbdev/nvidia/nv_setup.c | 24 ------------------------
> 1 file changed, 24 deletions(-)
>
> diff --git a/drivers/video/fbdev/nvidia/nv_setup.c b/drivers/video/fbdev/nvidia/nv_setup.c
> index b17acd2..2fa6866 100644
> --- a/drivers/video/fbdev/nvidia/nv_setup.c
> +++ b/drivers/video/fbdev/nvidia/nv_setup.c
> @@ -119,34 +119,10 @@ u8 NVReadMiscOut(struct nvidia_par *par)
> {
> return (VGA_RD08(par->PVIO, VGA_MIS_R));
> }
> -#if 0
> -void NVEnablePalette(struct nvidia_par *par)
> -{
> - volatile u8 tmp;
> -
> - tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a);
> - VGA_WR08(par->PCIO, VGA_ATT_IW, 0x00);
> - par->paletteEnabled = 1;
> -}
> -void NVDisablePalette(struct nvidia_par *par)
> -{
> - volatile u8 tmp;
> -
> - tmp = VGA_RD08(par->PCIO, par->IOBase + 0x0a);
> - VGA_WR08(par->PCIO, VGA_ATT_IW, 0x20);
> - par->paletteEnabled = 0;
> -}
> -#endif /* 0 */
> void NVWriteDacMask(struct nvidia_par *par, u8 value)
> {
> VGA_WR08(par->PDIO, VGA_PEL_MSK, value);
> }
> -#if 0
> -u8 NVReadDacMask(struct nvidia_par *par)
> -{
> - return (VGA_RD08(par->PDIO, VGA_PEL_MSK));
> -}
> -#endif /* 0 */
> void NVWriteDacReadAddr(struct nvidia_par *par, u8 value)
> {
> VGA_WR08(par->PDIO, VGA_PEL_IR, value);
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] video: fbdev: nvidia: Remove dead code
2019-07-22 8:26 ` Souptick Joarder
@ 2019-07-23 15:36 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2019-07-23 15:36 UTC (permalink / raw)
To: Souptick Joarder
Cc: adaplas, linux-fbdev, dri-devel, linux-kernel, Sabyasachi Gupta
On 7/22/19 10:26 AM, Souptick Joarder wrote:
> On Wed, Jul 10, 2019 at 11:41 PM Souptick Joarder <jrdr.linux@gmail.com> wrote:
>>
>> This is dead code since 3.15. If there is no plan to use it
>> further, this can be removed forever.
>
> Any comment on this patch ?
>
>>
>> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Patch queued for v5.4, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-23 15:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 18:16 [PATCH] video: fbdev: nvidia: Remove dead code Souptick Joarder
2019-07-22 8:26 ` Souptick Joarder
2019-07-23 15:36 ` Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).