Skip to contentSkip to conversation

w1: add missing spaces before '*' and remove spaces after '*'

PATCH New [email protected] 1 participant 2 messages Jul 20, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 w1: add missing spaces before '*' and remove spaces after '*'

Add missing spaces to clear checkpatch errors.

ERROR: "foo* bar" should be "foo *bar"

---
 include/linux/w1.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/w1.h +3 -3
index 9a2a0ef39018..70188da81d04 100644
@@ -304,17 +304,17 @@ int w1_reset_select_slave(struct w1_slave *sl);
 int w1_reset_resume_command(struct w1_master *);
 void w1_next_pullup(struct w1_master *, int);
 
-static inline struct w1_slave* dev_to_w1_slave(struct device *dev)
+static inline struct w1_slave *dev_to_w1_slave(struct device *dev)
 {
 	return container_of(dev, struct w1_slave, dev);
 }
 
-static inline struct w1_slave* kobj_to_w1_slave(struct kobject *kobj)
+static inline struct w1_slave *kobj_to_w1_slave(struct kobject *kobj)
 {
 	return dev_to_w1_slave(container_of(kobj, struct device, kobj));
 }
 
-static inline struct w1_master* dev_to_w1_master(struct device *dev)
+static inline struct w1_master *dev_to_w1_master(struct device *dev)
 {
 	return container_of(dev, struct w1_master, dev);
 }
#2 lore raw

PATCH 1/1 w1: add missing spaces before '*' and remove spaces after '*'

In reply to a message not in the archive

Add missing spaces to clear checkpatch errors.

ERROR: "foo* bar" should be "foo *bar"

---
 include/linux/w1.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/w1.h +3 -3
index 9a2a0ef39018..70188da81d04 100644
@@ -304,17 +304,17 @@ int w1_reset_select_slave(struct w1_slave *sl);
 int w1_reset_resume_command(struct w1_master *);
 void w1_next_pullup(struct w1_master *, int);
 
-static inline struct w1_slave* dev_to_w1_slave(struct device *dev)
+static inline struct w1_slave *dev_to_w1_slave(struct device *dev)
 {
 	return container_of(dev, struct w1_slave, dev);
 }
 
-static inline struct w1_slave* kobj_to_w1_slave(struct kobject *kobj)
+static inline struct w1_slave *kobj_to_w1_slave(struct kobject *kobj)
 {
 	return dev_to_w1_slave(container_of(kobj, struct device, kobj));
 }
 
-static inline struct w1_master* dev_to_w1_master(struct device *dev)
+static inline struct w1_master *dev_to_w1_master(struct device *dev)
 {
 	return container_of(dev, struct w1_master, dev);
 }