aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-08-18 14:04:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-18 14:04:51 -0400
commitd5acba26bfa097a618be425522b1ec4269d3edaf (patch)
tree7abb08032d4b79b34eb1386aa007a811e1964839 /drivers/w1/masters
parent2475c515d4031c494ff452508a8bf8c281ec6e56 (diff)
parent128f38041035001276e964cda1cf951f218d965d (diff)
Merge tag 'char-misc-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here is the bit set of char/misc drivers for 4.19-rc1 There is a lot here, much more than normal, seems like everyone is writing new driver subsystems these days... Anyway, major things here are: - new FSI driver subsystem, yet-another-powerpc low-level hardware bus - gnss, finally an in-kernel GPS subsystem to try to tame all of the crazy out-of-tree drivers that have been floating around for years, combined with some really hacky userspace implementations. This is only for GNSS receivers, but you have to start somewhere, and this is great to see. Other than that, there are new slimbus drivers, new coresight drivers, new fpga drivers, and loads of DT bindings for all of these and existing drivers. All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits) android: binder: Rate-limit debug and userspace triggered err msgs fsi: sbefifo: Bump max command length fsi: scom: Fix NULL dereference misc: mic: SCIF Fix scif_get_new_port() error handling misc: cxl: changed asterisk position genwqe: card_base: Use true and false for boolean values misc: eeprom: assignment outside the if statement uio: potential double frees if __uio_register_device() fails eeprom: idt_89hpesx: clean up an error pointer vs NULL inconsistency misc: ti-st: Fix memory leak in the error path of probe() android: binder: Show extra_buffers_size in trace firmware: vpd: Fix section enabled flag on vpd_section_destroy platform: goldfish: Retire pdev_bus goldfish: Use dedicated macros instead of manual bit shifting goldfish: Add missing includes to goldfish.h mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux dt-bindings: mux: add adi,adgs1408 Drivers: hv: vmbus: Cleanup synic memory free path Drivers: hv: vmbus: Remove use of slow_virt_to_phys() Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind() ...
Diffstat (limited to 'drivers/w1/masters')
-rw-r--r--drivers/w1/masters/ds2482.c2
-rw-r--r--drivers/w1/masters/ds2490.c16
-rw-r--r--drivers/w1/masters/mxc_w1.c1
3 files changed, 9 insertions, 10 deletions
diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c
index 5b3e017d9276..8b5e598ffdb3 100644
--- a/drivers/w1/masters/ds2482.c
+++ b/drivers/w1/masters/ds2482.c
@@ -71,7 +71,7 @@ MODULE_PARM_DESC(active_pullup, "Active pullup (apply to all buses): " \
71#define DS2482_REG_CFG_APU 0x01 /* active pull-up */ 71#define DS2482_REG_CFG_APU 0x01 /* active pull-up */
72 72
73/* extra configurations - e.g. 1WS */ 73/* extra configurations - e.g. 1WS */
74int extra_config; 74static int extra_config;
75 75
76/** 76/**
77 * Write and verify codes for the CHANNEL_SELECT command (DS2482-800 only). 77 * Write and verify codes for the CHANNEL_SELECT command (DS2482-800 only).
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c
index c423bdb982bb..0f4ecfcdb549 100644
--- a/drivers/w1/masters/ds2490.c
+++ b/drivers/w1/masters/ds2490.c
@@ -134,8 +134,7 @@
134#define EP_DATA_OUT 2 134#define EP_DATA_OUT 2
135#define EP_DATA_IN 3 135#define EP_DATA_IN 3
136 136
137struct ds_device 137struct ds_device {
138{
139 struct list_head ds_entry; 138 struct list_head ds_entry;
140 139
141 struct usb_device *udev; 140 struct usb_device *udev;
@@ -158,8 +157,7 @@ struct ds_device
158 struct w1_bus_master master; 157 struct w1_bus_master master;
159}; 158};
160 159
161struct ds_status 160struct ds_status {
162{
163 u8 enable; 161 u8 enable;
164 u8 speed; 162 u8 speed;
165 u8 pullup_dur; 163 u8 pullup_dur;
@@ -236,7 +234,7 @@ static void ds_dump_status(struct ds_device *dev, unsigned char *buf, int count)
236 int i; 234 int i;
237 235
238 pr_info("0x%x: count=%d, status: ", dev->ep[EP_STATUS], count); 236 pr_info("0x%x: count=%d, status: ", dev->ep[EP_STATUS], count);
239 for (i=0; i<count; ++i) 237 for (i = 0; i < count; ++i)
240 pr_info("%02x ", buf[i]); 238 pr_info("%02x ", buf[i]);
241 pr_info("\n"); 239 pr_info("\n");
242 240
@@ -358,7 +356,7 @@ static int ds_recv_data(struct ds_device *dev, unsigned char *buf, int size)
358 int i; 356 int i;
359 357
360 printk("%s: count=%d: ", __func__, count); 358 printk("%s: count=%d: ", __func__, count);
361 for (i=0; i<count; ++i) 359 for (i = 0; i < count; ++i)
362 printk("%02x ", buf[i]); 360 printk("%02x ", buf[i]);
363 printk("\n"); 361 printk("\n");
364 } 362 }
@@ -404,7 +402,7 @@ int ds_stop_pulse(struct ds_device *dev, int limit)
404 if (err) 402 if (err)
405 break; 403 break;
406 } 404 }
407 } while(++count < limit); 405 } while (++count < limit);
408 406
409 return err; 407 return err;
410} 408}
@@ -447,7 +445,7 @@ static int ds_wait_status(struct ds_device *dev, struct ds_status *st)
447 if (err >= 0) { 445 if (err >= 0) {
448 int i; 446 int i;
449 printk("0x%x: count=%d, status: ", dev->ep[EP_STATUS], err); 447 printk("0x%x: count=%d, status: ", dev->ep[EP_STATUS], err);
450 for (i=0; i<err; ++i) 448 for (i = 0; i < err; ++i)
451 printk("%02x ", dev->st_buf[i]); 449 printk("%02x ", dev->st_buf[i]);
452 printk("\n"); 450 printk("\n");
453 } 451 }
@@ -613,7 +611,7 @@ static int ds_read_byte(struct ds_device *dev, u8 *byte)
613 int err; 611 int err;
614 struct ds_status st; 612 struct ds_status st;
615 613
616 err = ds_send_control(dev, COMM_BYTE_IO | COMM_IM , 0xff); 614 err = ds_send_control(dev, COMM_BYTE_IO | COMM_IM, 0xff);
617 if (err) 615 if (err)
618 return err; 616 return err;
619 617
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index 8851d441e5fd..50b46c4399ea 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -17,6 +17,7 @@
17#include <linux/io.h> 17#include <linux/io.h>
18#include <linux/jiffies.h> 18#include <linux/jiffies.h>
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/mod_devicetable.h>
20#include <linux/platform_device.h> 21#include <linux/platform_device.h>
21 22
22#include <linux/w1.h> 23#include <linux/w1.h>