Skip to content

Commit eeb6d1d

Browse files
GuoHua Chengrafaeljw
authored andcommitted
PNP: Clean up coding style in pnp.h
Address the following checkpatch complaints: ERROR: "foo * bar" should be "foo *bar" ERROR: space required after that ';' (ctx:VxV) Signed-off-by: GuoHua Cheng <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8a749fd commit eeb6d1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/pnp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static inline void pnp_set_drvdata(struct pnp_dev *pdev, void *data)
291291

292292
struct pnp_fixup {
293293
char id[7];
294-
void (*quirk_function) (struct pnp_dev * dev); /* fixup function */
294+
void (*quirk_function) (struct pnp_dev *dev); /* fixup function */
295295
};
296296

297297
/* config parameters */
@@ -419,8 +419,8 @@ struct pnp_protocol {
419419

420420
/* protocol specific suspend/resume */
421421
bool (*can_wakeup) (struct pnp_dev *dev);
422-
int (*suspend) (struct pnp_dev * dev, pm_message_t state);
423-
int (*resume) (struct pnp_dev * dev);
422+
int (*suspend) (struct pnp_dev *dev, pm_message_t state);
423+
int (*resume) (struct pnp_dev *dev);
424424

425425
/* used by pnp layer only (look but don't touch) */
426426
unsigned char number; /* protocol number */
@@ -492,7 +492,7 @@ static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
492492
static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
493493
static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }
494494
static inline int pnp_disable_dev(struct pnp_dev *dev) { return -ENODEV; }
495-
static inline int pnp_range_reserved(resource_size_t start, resource_size_t end) { return 0;}
495+
static inline int pnp_range_reserved(resource_size_t start, resource_size_t end) { return 0; }
496496

497497
/* protocol helpers */
498498
static inline int pnp_is_active(struct pnp_dev *dev) { return 0; }

0 commit comments

Comments
 (0)