From c41d74c31e36d218b81c5bb6c6b62f0ada69f2db Mon Sep 17 00:00:00 2001 From: Amarjargal Gundjalam Date: Fri, 17 May 2013 01:03:41 -0700 Subject: [PATCH] keucr: fixes open brace go on the next line error This patch fixes the following checkpatch error, ERROR: open brace '{' following function declarations go on the next line Signed-off-by: Amarjargal Gundjalam Signed-off-by: Greg Kroah-Hartman --- drivers/staging/keucr/usb.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/keucr/usb.h b/drivers/staging/keucr/usb.h index a5f7a16c11c9..94da345396e1 100644 --- a/drivers/staging/keucr/usb.h +++ b/drivers/staging/keucr/usb.h @@ -218,10 +218,12 @@ struct us_data { }; /* Convert between us_data and the corresponding Scsi_Host */ -static inline struct Scsi_Host *us_to_host(struct us_data *us) { +static inline struct Scsi_Host *us_to_host(struct us_data *us) +{ return container_of((void *) us, struct Scsi_Host, hostdata); } -static inline struct us_data *host_to_us(struct Scsi_Host *host) { +static inline struct us_data *host_to_us(struct Scsi_Host *host) +{ return (struct us_data *) host->hostdata; } -- 2.20.1