hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/geode/lxfb.h
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* Geode LX framebuffer driver
23 *
34 * Copyright (C) 2006-2007, Advanced Micro Devices,Inc.
45 * Copyright (c) 2008 Andres Salomon <dilinger@debian.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; either version 2 of the License, or (at your
9
- * option) any later version.
106 */
117 #ifndef _LXFB_H_
128 #define _LXFB_H_
....@@ -33,7 +29,6 @@
3329 void __iomem *gp_regs;
3430 void __iomem *dc_regs;
3531 void __iomem *vp_regs;
36
-#ifdef CONFIG_PM
3732 int powered_down;
3833
3934 /* register state, for power mgmt functionality */
....@@ -54,7 +49,6 @@
5449 uint32_t hcoeff[DC_HFILT_COUNT * 2];
5550 uint32_t vcoeff[DC_VFILT_COUNT];
5651 uint32_t vp_coeff[VP_COEFF_SIZE / 4];
57
-#endif
5852 };
5953
6054 static inline unsigned int lx_get_pitch(unsigned int xres, int bpp)
....@@ -68,11 +62,8 @@
6862 void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int,
6963 unsigned int, unsigned int);
7064
71
-#ifdef CONFIG_PM
7265 int lx_powerdown(struct fb_info *info);
7366 int lx_powerup(struct fb_info *info);
74
-#endif
75
-
7667
7768 /* Graphics Processor registers (table 6-29 from the data book) */
7869 enum gp_registers {