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

drivers: w1: style corrections for parenthesis and braces

Inserted whitespace between command and open parenthesis
at two locations. Removed new line between open brace and
command/declaration at two locations.

Signed-off-by: Ben Werbowyj <ben.werbowyj@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ben Werbowyj and committed by
Greg Kroah-Hartman
d4c3f97a 34924b23

+4 -6
+4 -6
drivers/w1/slaves/w1_therm.c
··· 81 81 static void w1_therm_remove_slave(struct w1_slave *sl) 82 82 { 83 83 int refcnt = atomic_sub_return(1, THERM_REFCNT(sl->family_data)); 84 - while(refcnt) { 84 + while (refcnt) { 85 85 msleep(1000); 86 86 refcnt = atomic_read(THERM_REFCNT(sl->family_data)); 87 87 } ··· 151 151 .fops = &w1_therm_fops, 152 152 }; 153 153 154 - struct w1_therm_family_converter 155 - { 154 + struct w1_therm_family_converter { 156 155 u8 broken; 157 156 u16 reserved; 158 157 struct w1_family *f; ··· 292 293 uint8_t precision_bits; 293 294 uint8_t mask = 0x60; 294 295 295 - if(val > 12 || val < 9) { 296 + if (val > 12 || val < 9) { 296 297 pr_warn("Unsupported precision\n"); 297 298 return -1; 298 299 } ··· 438 439 if (ret != 0) 439 440 goto post_unlock; 440 441 441 - if(!sl->family_data) 442 - { 442 + if (!sl->family_data) { 443 443 ret = -ENODEV; 444 444 goto pre_unlock; 445 445 }