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

Merge tag 'w1-drv-6.11' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1 into char-misc-next

Krzysztof writes:

1-Wire bus drivers for v6.11

Just two cleanups for W1 core code.

* tag 'w1-drv-6.11' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1:
w1: Drop allocation error message
w1: Add missing newline and fix typos in w1_bus_master comment

+6 -9
+1 -1
drivers/w1/w1.c
··· 504 504 if (result == 0) 505 505 result = count; 506 506 } else { 507 - dev_info(dev, "Device %02x-%012llx doesn't exists\n", rn.family, 507 + dev_info(dev, "Device %02x-%012llx doesn't exist\n", rn.family, 508 508 (unsigned long long)rn.id); 509 509 result = -EINVAL; 510 510 }
+1 -5
drivers/w1/w1_int.c
··· 32 32 * We are in process context(kernel thread), so can sleep. 33 33 */ 34 34 dev = kzalloc(sizeof(struct w1_master) + sizeof(struct w1_bus_master), GFP_KERNEL); 35 - if (!dev) { 36 - pr_err("Failed to allocate %zd bytes for new w1 device.\n", 37 - sizeof(struct w1_master)); 35 + if (!dev) 38 36 return NULL; 39 - } 40 - 41 37 42 38 dev->bus_master = (struct w1_bus_master *)(dev + 1); 43 39
+4 -3
include/linux/w1.h
··· 85 85 * 86 86 * @data: the first parameter in all the functions below 87 87 * 88 - * @read_bit: Sample the line level @return the level read (0 or 1) 88 + * @read_bit: Sample the line level 89 + * @return the level read (0 or 1) 89 90 * 90 91 * @write_bit: Sets the line level 91 92 * ··· 96 95 * touch_bit(1) = write-1 / read cycle 97 96 * @return the bit read (0 or 1) 98 97 * 99 - * @read_byte: Reads a bytes. Same as 8 touch_bit(1) calls. 98 + * @read_byte: Reads a byte. Same as 8 touch_bit(1) calls. 100 99 * @return the byte read 101 100 * 102 101 * @write_byte: Writes a byte. Same as 8 touch_bit(x) calls. ··· 115 114 * @set_pullup: Put out a strong pull-up pulse of the specified duration. 116 115 * @return -1=Error, 0=completed 117 116 * 118 - * @search: Really nice hardware can handles the different types of ROM search 117 + * @search: Really nice hardware can handle the different types of ROM search 119 118 * w1_master* is passed to the slave found callback. 120 119 * u8 is search_type, W1_SEARCH or W1_ALARM_SEARCH 121 120 *