diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-06-16 17:51:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-06-16 17:51:25 -0400 |
commit | 3a448294b79ace48cf8ecbbffdeceae49bae00cc (patch) | |
tree | df9d5f6d4503d3de81335e51719f78dba3cda9f7 | |
parent | 162f73f4b974aa08ab37e9d59f0428edfa8dbc51 (diff) | |
parent | b429f96aa5cb4023b915de9c2aa6e7720a939856 (diff) |
Merge tag 'fbdev-v4.12-rc6' of git://github.com/bzolnier/linux
Pull fbdev fixes from Bartlomiej Zolnierkiewicz:
- fix udlfb driver to stop spamming logs (Mike Gerow)
- add missing endianness conversions in smscufx & udlfb drivers (Johan
Hovold)
- fix few gcc warnings/errors (Arnd Bergmann)
* tag 'fbdev-v4.12-rc6' of git://github.com/bzolnier/linux:
video: fbdev: udlfb: drop log level for blanking
video: fbdev: via: remove possibly unused variables
video: fbdev: add missing USB-descriptor endianness conversions
video: fbdev: avoid int-in-bool-context warning
-rw-r--r-- | drivers/video/fbdev/core/fbmon.c | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/smscufx.c | 5 | ||||
-rw-r--r-- | drivers/video/fbdev/udlfb.c | 9 | ||||
-rw-r--r-- | drivers/video/fbdev/via/viafbdev.c | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c index 687ebb053438..41d7979d81c5 100644 --- a/drivers/video/fbdev/core/fbmon.c +++ b/drivers/video/fbdev/core/fbmon.c | |||
@@ -1048,7 +1048,7 @@ void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs) | |||
1048 | 1048 | ||
1049 | for (i = 0; i < (128 - edid[2]) / DETAILED_TIMING_DESCRIPTION_SIZE; | 1049 | for (i = 0; i < (128 - edid[2]) / DETAILED_TIMING_DESCRIPTION_SIZE; |
1050 | i++, block += DETAILED_TIMING_DESCRIPTION_SIZE) | 1050 | i++, block += DETAILED_TIMING_DESCRIPTION_SIZE) |
1051 | if (PIXEL_CLOCK) | 1051 | if (PIXEL_CLOCK != 0) |
1052 | edt[num++] = block - edid; | 1052 | edt[num++] = block - edid; |
1053 | 1053 | ||
1054 | /* Yikes, EDID data is totally useless */ | 1054 | /* Yikes, EDID data is totally useless */ |
diff --git a/drivers/video/fbdev/smscufx.c b/drivers/video/fbdev/smscufx.c index ec2e7e353685..449fceaf79d5 100644 --- a/drivers/video/fbdev/smscufx.c +++ b/drivers/video/fbdev/smscufx.c | |||
@@ -1646,8 +1646,9 @@ static int ufx_usb_probe(struct usb_interface *interface, | |||
1646 | dev_dbg(dev->gdev, "%s %s - serial #%s\n", | 1646 | dev_dbg(dev->gdev, "%s %s - serial #%s\n", |
1647 | usbdev->manufacturer, usbdev->product, usbdev->serial); | 1647 | usbdev->manufacturer, usbdev->product, usbdev->serial); |
1648 | dev_dbg(dev->gdev, "vid_%04x&pid_%04x&rev_%04x driver's ufx_data struct at %p\n", | 1648 | dev_dbg(dev->gdev, "vid_%04x&pid_%04x&rev_%04x driver's ufx_data struct at %p\n", |
1649 | usbdev->descriptor.idVendor, usbdev->descriptor.idProduct, | 1649 | le16_to_cpu(usbdev->descriptor.idVendor), |
1650 | usbdev->descriptor.bcdDevice, dev); | 1650 | le16_to_cpu(usbdev->descriptor.idProduct), |
1651 | le16_to_cpu(usbdev->descriptor.bcdDevice), dev); | ||
1651 | dev_dbg(dev->gdev, "console enable=%d\n", console); | 1652 | dev_dbg(dev->gdev, "console enable=%d\n", console); |
1652 | dev_dbg(dev->gdev, "fb_defio enable=%d\n", fb_defio); | 1653 | dev_dbg(dev->gdev, "fb_defio enable=%d\n", fb_defio); |
1653 | 1654 | ||
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 6a3c353de7c3..05ef657235df 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c | |||
@@ -1105,8 +1105,8 @@ static int dlfb_ops_blank(int blank_mode, struct fb_info *info) | |||
1105 | char *bufptr; | 1105 | char *bufptr; |
1106 | struct urb *urb; | 1106 | struct urb *urb; |
1107 | 1107 | ||
1108 | pr_info("/dev/fb%d FB_BLANK mode %d --> %d\n", | 1108 | pr_debug("/dev/fb%d FB_BLANK mode %d --> %d\n", |
1109 | info->node, dev->blank_mode, blank_mode); | 1109 | info->node, dev->blank_mode, blank_mode); |
1110 | 1110 | ||
1111 | if ((dev->blank_mode == FB_BLANK_POWERDOWN) && | 1111 | if ((dev->blank_mode == FB_BLANK_POWERDOWN) && |
1112 | (blank_mode != FB_BLANK_POWERDOWN)) { | 1112 | (blank_mode != FB_BLANK_POWERDOWN)) { |
@@ -1613,8 +1613,9 @@ static int dlfb_usb_probe(struct usb_interface *interface, | |||
1613 | pr_info("%s %s - serial #%s\n", | 1613 | pr_info("%s %s - serial #%s\n", |
1614 | usbdev->manufacturer, usbdev->product, usbdev->serial); | 1614 | usbdev->manufacturer, usbdev->product, usbdev->serial); |
1615 | pr_info("vid_%04x&pid_%04x&rev_%04x driver's dlfb_data struct at %p\n", | 1615 | pr_info("vid_%04x&pid_%04x&rev_%04x driver's dlfb_data struct at %p\n", |
1616 | usbdev->descriptor.idVendor, usbdev->descriptor.idProduct, | 1616 | le16_to_cpu(usbdev->descriptor.idVendor), |
1617 | usbdev->descriptor.bcdDevice, dev); | 1617 | le16_to_cpu(usbdev->descriptor.idProduct), |
1618 | le16_to_cpu(usbdev->descriptor.bcdDevice), dev); | ||
1618 | pr_info("console enable=%d\n", console); | 1619 | pr_info("console enable=%d\n", console); |
1619 | pr_info("fb_defio enable=%d\n", fb_defio); | 1620 | pr_info("fb_defio enable=%d\n", fb_defio); |
1620 | pr_info("shadow enable=%d\n", shadow); | 1621 | pr_info("shadow enable=%d\n", shadow); |
diff --git a/drivers/video/fbdev/via/viafbdev.c b/drivers/video/fbdev/via/viafbdev.c index f9718f012aae..badee04ef496 100644 --- a/drivers/video/fbdev/via/viafbdev.c +++ b/drivers/video/fbdev/via/viafbdev.c | |||
@@ -1630,16 +1630,14 @@ static void viafb_init_proc(struct viafb_shared *shared) | |||
1630 | } | 1630 | } |
1631 | static void viafb_remove_proc(struct viafb_shared *shared) | 1631 | static void viafb_remove_proc(struct viafb_shared *shared) |
1632 | { | 1632 | { |
1633 | struct proc_dir_entry *viafb_entry = shared->proc_entry, | 1633 | struct proc_dir_entry *viafb_entry = shared->proc_entry; |
1634 | *iga1_entry = shared->iga1_proc_entry, | ||
1635 | *iga2_entry = shared->iga2_proc_entry; | ||
1636 | 1634 | ||
1637 | if (!viafb_entry) | 1635 | if (!viafb_entry) |
1638 | return; | 1636 | return; |
1639 | 1637 | ||
1640 | remove_proc_entry("output_devices", iga2_entry); | 1638 | remove_proc_entry("output_devices", shared->iga2_proc_entry); |
1641 | remove_proc_entry("iga2", viafb_entry); | 1639 | remove_proc_entry("iga2", viafb_entry); |
1642 | remove_proc_entry("output_devices", iga1_entry); | 1640 | remove_proc_entry("output_devices", shared->iga1_proc_entry); |
1643 | remove_proc_entry("iga1", viafb_entry); | 1641 | remove_proc_entry("iga1", viafb_entry); |
1644 | remove_proc_entry("supported_output_devices", viafb_entry); | 1642 | remove_proc_entry("supported_output_devices", viafb_entry); |
1645 | 1643 | ||