diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 05:33:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 08:44:55 -0400 |
commit | 64131a87f2aae2ed9e05d8227c5b009ca6c50d98 (patch) | |
tree | fdea23fd59216120bf54a48c60ca24489a733f14 /drivers/bluetooth/hci_h5.c | |
parent | 676ee36be04985062522804c2de04f0764212be6 (diff) | |
parent | 2c33ce009ca2389dbf0535d0672214d09738e35e (diff) |
Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus
* 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux: (9717 commits)
media-bus: Fixup RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus format
hexdump: avoid warning in test function
fs: take i_mutex during prepare_binprm for set[ug]id executables
smp: Fix error case handling in smp_call_function_*()
iommu-common: Fix PARISC compile-time warnings
sparc: Make LDC use common iommu poll management functions
sparc: Make sparc64 use scalable lib/iommu-common.c functions
Break up monolithic iommu table/lock into finer graularity pools and lock
sparc: Revert generic IOMMU allocator.
tools/power turbostat: correct dumped pkg-cstate-limit value
tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL
tools/power turbostat: correct DRAM RAPL units on recent Xeon processors
tools/power turbostat: Initial Skylake support
tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
tools/power turbostat: modprobe msr, if needed
tools/power turbostat: dump MSR_TURBO_RATIO_LIMIT2
tools/power turbostat: use new MSR_TURBO_RATIO_LIMIT names
Bluetooth: hidp: Fix regression with older userspace and flags validation
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
perf/x86/intel/pt: Fix and clean up error handling in pt_event_add()
...
That solves several merge conflicts:
Documentation/DocBook/media/v4l/subdev-formats.xml
Documentation/devicetree/bindings/vendor-prefixes.txt
drivers/staging/media/mn88473/mn88473.c
include/linux/kconfig.h
include/uapi/linux/media-bus-format.h
The ones at subdev-formats.xml and media-bus-format.h are not trivial.
That's why we opted to merge from DRM.
Diffstat (limited to 'drivers/bluetooth/hci_h5.c')
-rw-r--r-- | drivers/bluetooth/hci_h5.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index ec0fa7732c0d..3455cecc9ecf 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c | |||
@@ -511,10 +511,10 @@ static void h5_reset_rx(struct h5 *h5) | |||
511 | clear_bit(H5_RX_ESC, &h5->flags); | 511 | clear_bit(H5_RX_ESC, &h5->flags); |
512 | } | 512 | } |
513 | 513 | ||
514 | static int h5_recv(struct hci_uart *hu, void *data, int count) | 514 | static int h5_recv(struct hci_uart *hu, const void *data, int count) |
515 | { | 515 | { |
516 | struct h5 *h5 = hu->priv; | 516 | struct h5 *h5 = hu->priv; |
517 | unsigned char *ptr = data; | 517 | const unsigned char *ptr = data; |
518 | 518 | ||
519 | BT_DBG("%s pending %zu count %d", hu->hdev->name, h5->rx_pending, | 519 | BT_DBG("%s pending %zu count %d", hu->hdev->name, h5->rx_pending, |
520 | count); | 520 | count); |
@@ -743,8 +743,9 @@ static int h5_flush(struct hci_uart *hu) | |||
743 | return 0; | 743 | return 0; |
744 | } | 744 | } |
745 | 745 | ||
746 | static struct hci_uart_proto h5p = { | 746 | static const struct hci_uart_proto h5p = { |
747 | .id = HCI_UART_3WIRE, | 747 | .id = HCI_UART_3WIRE, |
748 | .name = "Three-wire (H5)", | ||
748 | .open = h5_open, | 749 | .open = h5_open, |
749 | .close = h5_close, | 750 | .close = h5_close, |
750 | .recv = h5_recv, | 751 | .recv = h5_recv, |
@@ -755,14 +756,7 @@ static struct hci_uart_proto h5p = { | |||
755 | 756 | ||
756 | int __init h5_init(void) | 757 | int __init h5_init(void) |
757 | { | 758 | { |
758 | int err = hci_uart_register_proto(&h5p); | 759 | return hci_uart_register_proto(&h5p); |
759 | |||
760 | if (!err) | ||
761 | BT_INFO("HCI Three-wire UART (H5) protocol initialized"); | ||
762 | else | ||
763 | BT_ERR("HCI Three-wire UART (H5) protocol init failed"); | ||
764 | |||
765 | return err; | ||
766 | } | 760 | } |
767 | 761 | ||
768 | int __exit h5_deinit(void) | 762 | int __exit h5_deinit(void) |