Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'fbdev-for-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev

Pull fbdev updates from Helge Deller:

- Detect VGA compatibility from VESA attributes (Thomas Zimmermann)

- Make I2C terminology more inclusive in smscufx and viafb (Easwar
Hariharan)

- Add lots of missing MODULE_DESCRIPTION() macros (Jeff Johnson)

- Logo code cleanups (Geert Uytterhoeven)

- Minor fixes by Chen Ni, Kuninori Morimoto, Uwe Kleine-König and
Christophe Jaillett

* tag 'fbdev-for-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (21 commits)
fbdev: viafb: Make I2C terminology more inclusive
fbdev: smscufx: Make I2C terminology more inclusive
fbdev: omap2: Return clk_prepare_enable to transfer the error
fbdev: mmp: Constify struct mmp_overlay_ops
fbdev: Drop explicit initialization of struct i2c_device_id::driver_data to 0
video: agp: add remaining missing MODULE_DESCRIPTION() macros
video: console: add missing MODULE_DESCRIPTION() macros
fbdev: amifb: add missing MODULE_DESCRIPTION() macro
fbdev: c2p_planar: add missing MODULE_DESCRIPTION() macro
fbdev: vesafb: Detect VGA compatibility from screen info's VESA attributes
fbdev: omapfb: use of_graph_get_remote_port()
fbdev: omapdss: use for_each_endpoint_of_node()
fbdev: offb: add missing MODULE_DESCRIPTION() macro
fbdev: vfb: add missing MODULE_DESCRIPTION() macro
fbdev: macmodes: add missing MODULE_DESCRIPTION() macro
fbdev: goldfishfb: add missing MODULE_DESCRIPTION() macro
fbdev: kyro: add missing MODULE_DESCRIPTION() macro
fbdev: viafb: add missing MODULE_DESCRIPTION() macro
fbdev: matroxfb: add missing MODULE_DESCRIPTION() macros
video/logo: Remove linux_serial_image comments
...

+78 -64
+1
drivers/char/agp/ali-agp.c
··· 418 418 module_exit(agp_ali_cleanup); 419 419 420 420 MODULE_AUTHOR("Dave Jones"); 421 + MODULE_DESCRIPTION("ALi AGPGART routines"); 421 422 MODULE_LICENSE("GPL and additional rights"); 422 423
+1
drivers/char/agp/alpha-agp.c
··· 217 217 module_exit(agp_alpha_core_cleanup); 218 218 219 219 MODULE_AUTHOR("Jeff Wiedemeier <Jeff.Wiedemeier@hp.com>"); 220 + MODULE_DESCRIPTION("Alpha AGP support"); 220 221 MODULE_LICENSE("GPL and additional rights");
+1
drivers/char/agp/amd-k7-agp.c
··· 549 549 module_init(agp_amdk7_init); 550 550 module_exit(agp_amdk7_cleanup); 551 551 552 + MODULE_DESCRIPTION("AMD K7 AGPGART routines"); 552 553 MODULE_LICENSE("GPL and additional rights");
+1
drivers/char/agp/ati-agp.c
··· 572 572 module_exit(agp_ati_cleanup); 573 573 574 574 MODULE_AUTHOR("Dave Jones"); 575 + MODULE_DESCRIPTION("ATi AGPGART routines"); 575 576 MODULE_LICENSE("GPL and additional rights"); 576 577
+1
drivers/char/agp/efficeon-agp.c
··· 465 465 module_exit(agp_efficeon_cleanup); 466 466 467 467 MODULE_AUTHOR("Carlos Puchol <cpglinux@puchol.com>"); 468 + MODULE_DESCRIPTION("Transmeta's Efficeon AGPGART driver"); 468 469 MODULE_LICENSE("GPL and additional rights");
+1
drivers/char/agp/nvidia-agp.c
··· 462 462 module_init(agp_nvidia_init); 463 463 module_exit(agp_nvidia_cleanup); 464 464 465 + MODULE_DESCRIPTION("Nvidia AGPGART routines"); 465 466 MODULE_LICENSE("GPL and additional rights"); 466 467 MODULE_AUTHOR("NVIDIA Corporation"); 467 468
+1
drivers/char/agp/parisc-agp.c
··· 432 432 module_init(parisc_agp_init); 433 433 434 434 MODULE_AUTHOR("Kyle McMartin <kyle@parisc-linux.org>"); 435 + MODULE_DESCRIPTION("HP Quicksilver AGP GART routines"); 435 436 MODULE_LICENSE("GPL");
+1
drivers/char/agp/sworks-agp.c
··· 564 564 module_init(agp_serverworks_init); 565 565 module_exit(agp_serverworks_cleanup); 566 566 567 + MODULE_DESCRIPTION("Serverworks AGPGART routines"); 567 568 MODULE_LICENSE("GPL and additional rights"); 568 569
+1
drivers/video/console/mdacon.c
··· 561 561 module_init(mda_console_init); 562 562 module_exit(mda_console_exit); 563 563 564 + MODULE_DESCRIPTION("MDA based console driver"); 564 565 MODULE_LICENSE("GPL"); 565 566
+1
drivers/video/console/newport_con.c
··· 744 744 }; 745 745 module_driver(newport_driver, gio_register_driver, gio_unregister_driver); 746 746 747 + MODULE_DESCRIPTION("SGI Newport console driver"); 747 748 MODULE_LICENSE("GPL");
+1
drivers/video/console/sticon.c
··· 391 391 } 392 392 393 393 module_init(sticonsole_init); 394 + MODULE_DESCRIPTION("HP STI console driver"); 394 395 MODULE_LICENSE("GPL");
+1
drivers/video/console/vgacon.c
··· 1222 1222 vga_si = si; 1223 1223 } 1224 1224 1225 + MODULE_DESCRIPTION("VGA based console driver"); 1225 1226 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/amifb.c
··· 3782 3782 3783 3783 module_platform_driver_probe(amifb_driver, amifb_probe); 3784 3784 3785 + MODULE_DESCRIPTION("Amiga builtin chipset frame buffer driver"); 3785 3786 MODULE_LICENSE("GPL"); 3786 3787 MODULE_ALIAS("platform:amiga-video");
+1
drivers/video/fbdev/c2p_planar.c
··· 153 153 } 154 154 EXPORT_SYMBOL_GPL(c2p_planar); 155 155 156 + MODULE_DESCRIPTION("Fast C2P (Chunky-to-Planar) Conversion"); 156 157 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/goldfishfb.c
··· 321 321 322 322 module_platform_driver(goldfish_fb_driver); 323 323 324 + MODULE_DESCRIPTION("Goldfish Virtual Platform Framebuffer driver"); 324 325 MODULE_LICENSE("GPL v2");
+1
drivers/video/fbdev/kyro/fbdev.c
··· 811 811 #endif 812 812 813 813 MODULE_AUTHOR("STMicroelectronics; Paul Mundt <lethal@linux-sh.org>"); 814 + MODULE_DESCRIPTION("STG4000/Kyro/PowerVR 3 driver"); 814 815 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/macmodes.c
··· 411 411 } 412 412 EXPORT_SYMBOL(mac_find_mode); 413 413 414 + MODULE_DESCRIPTION("MacOS video mode library"); 414 415 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
··· 1111 1111 EXPORT_SYMBOL(DAC1064_global_init); 1112 1112 EXPORT_SYMBOL(DAC1064_global_restore); 1113 1113 #endif 1114 + MODULE_DESCRIPTION("Matrox Mystique/G100 output driver"); 1114 1115 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
··· 746 746 }; 747 747 EXPORT_SYMBOL(matrox_millennium); 748 748 #endif 749 + MODULE_DESCRIPTION("Matrox Millennium output driver"); 749 750 MODULE_LICENSE("GPL");
+1
drivers/video/fbdev/matrox/matroxfb_accel.c
··· 517 517 } 518 518 } 519 519 520 + MODULE_DESCRIPTION("Accelerated fbops for Matrox Millennium/Mystique/G100/G200/G400/G450/G550"); 520 521 MODULE_LICENSE("GPL");
+1 -1
drivers/video/fbdev/matrox/matroxfb_maven.c
··· 1282 1282 } 1283 1283 1284 1284 static const struct i2c_device_id maven_id[] = { 1285 - { "maven", 0 }, 1285 + { "maven" }, 1286 1286 { } 1287 1287 }; 1288 1288 MODULE_DEVICE_TABLE(i2c, maven_id);
+1 -1
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
··· 313 313 mutex_unlock(&path->access_ok); 314 314 } 315 315 316 - static struct mmp_overlay_ops mmphw_overlay_ops = { 316 + static const struct mmp_overlay_ops mmphw_overlay_ops = { 317 317 .set_fetch = overlay_set_fetch, 318 318 .set_onoff = overlay_set_onoff, 319 319 .set_win = overlay_set_win,
+1
drivers/video/fbdev/offb.c
··· 717 717 } 718 718 module_exit(offb_exit); 719 719 720 + MODULE_DESCRIPTION("Open Firmware frame buffer device driver"); 720 721 MODULE_LICENSE("GPL");
+1 -14
drivers/video/fbdev/omap2/omapfb/dss/dss-of.c
··· 117 117 return reg; 118 118 } 119 119 120 - static struct device_node *omapdss_of_get_remote_port(const struct device_node *node) 121 - { 122 - struct device_node *np; 123 - 124 - np = of_graph_get_remote_endpoint(node); 125 - if (!np) 126 - return NULL; 127 - 128 - np = of_get_next_parent(np); 129 - 130 - return np; 131 - } 132 - 133 120 struct omap_dss_device * 134 121 omapdss_of_find_source_for_first_ep(struct device_node *node) 135 122 { ··· 128 141 if (!ep) 129 142 return ERR_PTR(-EINVAL); 130 143 131 - src_port = omapdss_of_get_remote_port(ep); 144 + src_port = of_graph_get_remote_port(ep); 132 145 if (!src_port) { 133 146 of_node_put(ep); 134 147 return ERR_PTR(-EINVAL);
+1 -2
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c
··· 149 149 150 150 of_node_put(n); 151 151 152 - n = NULL; 153 - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { 152 + for_each_endpoint_of_node(node, n) { 154 153 struct device_node *pn; 155 154 156 155 pn = of_graph_get_remote_port_parent(n);
+1 -3
drivers/video/fbdev/omap2/omapfb/dss/venc.c
··· 903 903 if (r < 0) 904 904 return r; 905 905 906 - clk_prepare_enable(venc.tv_dac_clk); 907 - 908 - return 0; 906 + return clk_prepare_enable(venc.tv_dac_clk); 909 907 } 910 908 911 909 static const struct dev_pm_ops venc_pm_ops = {
+2 -2
drivers/video/fbdev/smscufx.c
··· 1292 1292 return 0; 1293 1293 } 1294 1294 1295 - /* sets up I2C Controller for 100 Kbps, std. speed, 7-bit addr, master, 1295 + /* sets up DDC channel for 100 Kbps, std. speed, 7-bit addr, controller mode, 1296 1296 * restart enabled, but no start byte, enable controller */ 1297 1297 static int ufx_i2c_init(struct ufx_data *dev) 1298 1298 { ··· 1321 1321 /* 7-bit (not 10-bit) addressing */ 1322 1322 tmp &= ~(0x10); 1323 1323 1324 - /* enable restart conditions and master mode */ 1324 + /* enable restart conditions and controller mode */ 1325 1325 tmp |= 0x21; 1326 1326 1327 1327 status = ufx_reg_write(dev, 0x1000, tmp);
+4 -4
drivers/video/fbdev/ssd1307fb.c
··· 782 782 } 783 783 784 784 static const struct i2c_device_id ssd1307fb_i2c_id[] = { 785 - { "ssd1305fb", 0 }, 786 - { "ssd1306fb", 0 }, 787 - { "ssd1307fb", 0 }, 788 - { "ssd1309fb", 0 }, 785 + { "ssd1305fb" }, 786 + { "ssd1306fb" }, 787 + { "ssd1307fb" }, 788 + { "ssd1309fb" }, 789 789 { } 790 790 }; 791 791 MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
+1 -1
drivers/video/fbdev/vesafb.c
··· 271 271 if (si->orig_video_isVGA != VIDEO_TYPE_VLFB) 272 272 return -ENODEV; 273 273 274 - vga_compat = (si->capabilities & 2) ? 0 : 1; 274 + vga_compat = !__screen_info_vbe_mode_nonvga(si); 275 275 vesafb_fix.smem_start = si->lfb_base; 276 276 vesafb_defined.bits_per_pixel = si->lfb_depth; 277 277 if (15 == vesafb_defined.bits_per_pixel)
+1
drivers/video/fbdev/vfb.c
··· 546 546 547 547 module_exit(vfb_exit); 548 548 549 + MODULE_DESCRIPTION("Virtual Frame Buffer driver"); 549 550 MODULE_LICENSE("GPL"); 550 551 #endif /* MODULE */
+4 -4
drivers/video/fbdev/via/chip.h
··· 69 69 #define VT1632_TMDS 0x01 70 70 #define INTEGRATED_TMDS 0x42 71 71 72 - /* Definition TMDS Trasmitter I2C Slave Address */ 72 + /* Definition TMDS Trasmitter I2C Target Address */ 73 73 #define VT1632_TMDS_I2C_ADDR 0x10 74 74 75 75 /**************************************************/ ··· 88 88 #define TX_DATA_DDR_MODE 0x04 89 89 #define TX_DATA_SDR_MODE 0x08 90 90 91 - /* Definition LVDS Trasmitter I2C Slave Address */ 91 + /* Definition LVDS Trasmitter I2C Target Address */ 92 92 #define VT1631_LVDS_I2C_ADDR 0x70 93 93 #define VT3271_LVDS_I2C_ADDR 0x80 94 94 #define VT1636_LVDS_I2C_ADDR 0x80 95 95 96 96 struct tmds_chip_information { 97 97 int tmds_chip_name; 98 - int tmds_chip_slave_addr; 98 + int tmds_chip_target_addr; 99 99 int output_interface; 100 100 int i2c_port; 101 101 }; 102 102 103 103 struct lvds_chip_information { 104 104 int lvds_chip_name; 105 - int lvds_chip_slave_addr; 105 + int lvds_chip_target_addr; 106 106 int output_interface; 107 107 int i2c_port; 108 108 };
+12 -12
drivers/video/fbdev/via/dvi.c
··· 70 70 /* Check for VT1632: */ 71 71 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = VT1632_TMDS; 72 72 viaparinfo->chip_info-> 73 - tmds_chip_info.tmds_chip_slave_addr = VT1632_TMDS_I2C_ADDR; 73 + tmds_chip_info.tmds_chip_target_addr = VT1632_TMDS_I2C_ADDR; 74 74 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_31; 75 75 if (check_tmds_chip(VT1632_DEVICE_ID_REG, VT1632_DEVICE_ID)) { 76 76 /* ··· 128 128 viaparinfo->chip_info-> 129 129 tmds_chip_info.tmds_chip_name = NON_TMDS_TRANSMITTER; 130 130 viaparinfo->chip_info->tmds_chip_info. 131 - tmds_chip_slave_addr = VT1632_TMDS_I2C_ADDR; 131 + tmds_chip_target_addr = VT1632_TMDS_I2C_ADDR; 132 132 return false; 133 133 } 134 134 135 135 static void tmds_register_write(int index, u8 data) 136 136 { 137 137 viafb_i2c_writebyte(viaparinfo->chip_info->tmds_chip_info.i2c_port, 138 - viaparinfo->chip_info->tmds_chip_info.tmds_chip_slave_addr, 138 + viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, 139 139 index, data); 140 140 } 141 141 ··· 144 144 u8 data; 145 145 146 146 viafb_i2c_readbyte(viaparinfo->chip_info->tmds_chip_info.i2c_port, 147 - (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_slave_addr, 147 + (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, 148 148 (u8) index, &data); 149 149 return data; 150 150 } ··· 152 152 static int tmds_register_read_bytes(int index, u8 *buff, int buff_len) 153 153 { 154 154 viafb_i2c_readbytes(viaparinfo->chip_info->tmds_chip_info.i2c_port, 155 - (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_slave_addr, 155 + (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, 156 156 (u8) index, buff, buff_len); 157 157 return 0; 158 158 } ··· 256 256 257 257 DEBUG_MSG(KERN_INFO "viafb_dvi_query_EDID!!\n"); 258 258 259 - restore = viaparinfo->chip_info->tmds_chip_info.tmds_chip_slave_addr; 260 - viaparinfo->chip_info->tmds_chip_info.tmds_chip_slave_addr = 0xA0; 259 + restore = viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr; 260 + viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr = 0xA0; 261 261 262 262 data0 = (u8) tmds_register_read(0x00); 263 263 data1 = (u8) tmds_register_read(0x01); 264 264 if ((data0 == 0) && (data1 == 0xFF)) { 265 265 viaparinfo->chip_info-> 266 - tmds_chip_info.tmds_chip_slave_addr = restore; 266 + tmds_chip_info.tmds_chip_target_addr = restore; 267 267 return EDID_VERSION_1; /* Found EDID1 Table */ 268 268 } 269 269 ··· 280 280 281 281 DEBUG_MSG(KERN_INFO "\n dvi_get_panel_size_from_DDCv1 \n"); 282 282 283 - restore = tmds_chip->tmds_chip_slave_addr; 284 - tmds_chip->tmds_chip_slave_addr = 0xA0; 283 + restore = tmds_chip->tmds_chip_target_addr; 284 + tmds_chip->tmds_chip_target_addr = 0xA0; 285 285 for (i = 0x25; i < 0x6D; i++) { 286 286 switch (i) { 287 287 case 0x36: ··· 306 306 307 307 DEBUG_MSG(KERN_INFO "DVI max pixelclock = %d\n", 308 308 tmds_setting->max_pixel_clock); 309 - tmds_chip->tmds_chip_slave_addr = restore; 309 + tmds_chip->tmds_chip_target_addr = restore; 310 310 } 311 311 312 312 /* If Disable DVI, turn off pad */ ··· 427 427 viafb_i2c_writebyte(viaparinfo->chip_info-> 428 428 tmds_chip_info.i2c_port, 429 429 viaparinfo->chip_info-> 430 - tmds_chip_info.tmds_chip_slave_addr, 430 + tmds_chip_info.tmds_chip_target_addr, 431 431 0x08, data); 432 432 } 433 433 }
+3 -3
drivers/video/fbdev/via/lcd.c
··· 147 147 return true; 148 148 /* Check for VT1631: */ 149 149 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = VT1631_LVDS; 150 - viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr = 150 + viaparinfo->chip_info->lvds_chip_info.lvds_chip_target_addr = 151 151 VT1631_LVDS_I2C_ADDR; 152 152 153 153 if (check_lvds_chip(VT1631_DEVICE_ID_REG, VT1631_DEVICE_ID)) { ··· 161 161 162 162 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = 163 163 NON_LVDS_TRANSMITTER; 164 - viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr = 164 + viaparinfo->chip_info->lvds_chip_info.lvds_chip_target_addr = 165 165 VT1631_LVDS_I2C_ADDR; 166 166 return false; 167 167 } ··· 327 327 u8 data; 328 328 329 329 viafb_i2c_readbyte(VIA_PORT_2C, 330 - (u8) viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr, 330 + (u8) viaparinfo->chip_info->lvds_chip_info.lvds_chip_target_addr, 331 331 (u8) index, &data); 332 332 return data; 333 333 }
+1 -1
drivers/video/fbdev/via/via_aux.h
··· 24 24 struct list_head chain; /* chain to support multiple drivers */ 25 25 26 26 struct via_aux_bus *bus; /* the I2C bus used */ 27 - u8 addr; /* the I2C slave address */ 27 + u8 addr; /* the I2C target address */ 28 28 29 29 const char *name; /* human readable name of the driver */ 30 30 void *data; /* private data of this driver */
+6 -6
drivers/video/fbdev/via/via_i2c.c
··· 104 104 spin_unlock_irqrestore(&i2c_vdev->reg_lock, flags); 105 105 } 106 106 107 - int viafb_i2c_readbyte(u8 adap, u8 slave_addr, u8 index, u8 *pdata) 107 + int viafb_i2c_readbyte(u8 adap, u8 target_addr, u8 index, u8 *pdata) 108 108 { 109 109 int ret; 110 110 u8 mm1[] = {0x00}; ··· 115 115 *pdata = 0; 116 116 msgs[0].flags = 0; 117 117 msgs[1].flags = I2C_M_RD; 118 - msgs[0].addr = msgs[1].addr = slave_addr / 2; 118 + msgs[0].addr = msgs[1].addr = target_addr / 2; 119 119 mm1[0] = index; 120 120 msgs[0].len = 1; msgs[1].len = 1; 121 121 msgs[0].buf = mm1; msgs[1].buf = pdata; ··· 128 128 return ret; 129 129 } 130 130 131 - int viafb_i2c_writebyte(u8 adap, u8 slave_addr, u8 index, u8 data) 131 + int viafb_i2c_writebyte(u8 adap, u8 target_addr, u8 index, u8 data) 132 132 { 133 133 int ret; 134 134 u8 msg[2] = { index, data }; ··· 137 137 if (!via_i2c_par[adap].is_active) 138 138 return -ENODEV; 139 139 msgs.flags = 0; 140 - msgs.addr = slave_addr / 2; 140 + msgs.addr = target_addr / 2; 141 141 msgs.len = 2; 142 142 msgs.buf = msg; 143 143 ret = i2c_transfer(&via_i2c_par[adap].adapter, &msgs, 1); ··· 149 149 return ret; 150 150 } 151 151 152 - int viafb_i2c_readbytes(u8 adap, u8 slave_addr, u8 index, u8 *buff, int buff_len) 152 + int viafb_i2c_readbytes(u8 adap, u8 target_addr, u8 index, u8 *buff, int buff_len) 153 153 { 154 154 int ret; 155 155 u8 mm1[] = {0x00}; ··· 159 159 return -ENODEV; 160 160 msgs[0].flags = 0; 161 161 msgs[1].flags = I2C_M_RD; 162 - msgs[0].addr = msgs[1].addr = slave_addr / 2; 162 + msgs[0].addr = msgs[1].addr = target_addr / 2; 163 163 mm1[0] = index; 164 164 msgs[0].len = 1; msgs[1].len = buff_len; 165 165 msgs[0].buf = mm1; msgs[1].buf = buff;
+1
drivers/video/fbdev/via/viafbdev.c
··· 2144 2144 module_param(viafb_dvi_port, charp, S_IRUSR); 2145 2145 MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port."); 2146 2146 2147 + MODULE_DESCRIPTION("VIA UniChrome (Pro) and Chrome9 display driver"); 2147 2148 MODULE_LICENSE("GPL"); 2148 2149 #endif
+3 -3
drivers/video/fbdev/via/vt1636.c
··· 44 44 u8 data; 45 45 46 46 viafb_i2c_readbyte(plvds_chip_info->i2c_port, 47 - plvds_chip_info->lvds_chip_slave_addr, index, &data); 47 + plvds_chip_info->lvds_chip_target_addr, index, &data); 48 48 return data; 49 49 } 50 50 ··· 60 60 data = (data & (~io_data.Mask)) | io_data.Data; 61 61 62 62 viafb_i2c_writebyte(plvds_chip_info->i2c_port, 63 - plvds_chip_info->lvds_chip_slave_addr, index, data); 63 + plvds_chip_info->lvds_chip_target_addr, index, data); 64 64 } 65 65 66 66 void viafb_init_lvds_vt1636(struct lvds_setting_information ··· 113 113 DEBUG_MSG(KERN_INFO "viafb_lvds_identify_vt1636.\n"); 114 114 115 115 /* Sense VT1636 LVDS Transmiter */ 116 - viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr = 116 + viaparinfo->chip_info->lvds_chip_info.lvds_chip_target_addr = 117 117 VT1636_LVDS_I2C_ADDR; 118 118 119 119 /* Check vendor ID first: */
+2 -2
drivers/video/logo/pnmtologo.c
··· 238 238 fprintf(out, " * Linux logo %s\n", logoname); 239 239 fputs(" */\n\n", out); 240 240 fputs("#include <linux/linux_logo.h>\n\n", out); 241 - fprintf(out, "static unsigned char %s_data[] __initdata = {\n", 241 + fprintf(out, "static const unsigned char %s_data[] __initconst = {\n", 242 242 logoname); 243 243 } 244 244 ··· 375 375 fputs("\n};\n\n", out); 376 376 377 377 /* write logo clut */ 378 - fprintf(out, "static unsigned char %s_clut[] __initdata = {\n", 378 + fprintf(out, "static const unsigned char %s_clut[] __initconst = {\n", 379 379 logoname); 380 380 write_hex_cnt = 0; 381 381 for (i = 0; i < logo_clutsize; i++) {
-3
include/linux/linux_logo.h
··· 10 10 * Copyright (C) 2001 Greg Banks <gnb@alphalink.com.au> 11 11 * Copyright (C) 2001 Jan-Benedict Glaw <jbglaw@lug-owl.de> 12 12 * Copyright (C) 2003 Geert Uytterhoeven <geert@linux-m68k.org> 13 - * 14 - * Serial_console ascii image can be any size, 15 - * but should contain %s to display the version 16 13 */ 17 14 18 15 #include <linux/init.h>
+10
include/linux/screen_info.h
··· 49 49 return lfb_size; 50 50 } 51 51 52 + static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si) 53 + { 54 + /* 55 + * VESA modes typically run on VGA hardware. Set bit 5 signals that this 56 + * is not the case. Drivers can then not make use of VGA resources. See 57 + * Sec 4.4 of the VBE 2.0 spec. 58 + */ 59 + return si->vesa_attributes & BIT(5); 60 + } 61 + 52 62 static inline unsigned int __screen_info_video_type(unsigned int type) 53 63 { 54 64 switch (type) {
+2 -2
include/video/mmp_disp.h
··· 156 156 int status; 157 157 struct mutex access_ok; 158 158 159 - struct mmp_overlay_ops *ops; 159 + const struct mmp_overlay_ops *ops; 160 160 }; 161 161 162 162 /* panel type */ ··· 299 299 int overlay_num; 300 300 void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); 301 301 void (*set_onoff)(struct mmp_path *path, int status); 302 - struct mmp_overlay_ops *overlay_ops; 302 + const struct mmp_overlay_ops *overlay_ops; 303 303 void *plat_data; 304 304 }; 305 305