summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2008-04-21 22:23:30 +0000
committerJesper Juhl <juhl@hera.kernel.org>2008-04-21 22:23:30 +0000
commit58da495065134b45799bd02988ab658c3da6af25 (patch)
tree828df48b753a02df858bcb0afb1207d737f70903
parent6f69a6d776f6f5921d73ad9648e43d9b59afeff4 (diff)
downloadblackbird-op-linux-58da495065134b45799bd02988ab658c3da6af25.tar.gz
blackbird-op-linux-58da495065134b45799bd02988ab658c3da6af25.zip
firmware_sample_driver.c: fix coding style
Fix coding style in firmware_sample_driver... Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
-rw-r--r--Documentation/firmware_class/firmware_sample_driver.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/Documentation/firmware_class/firmware_sample_driver.c b/Documentation/firmware_class/firmware_sample_driver.c
index 6865cbe075ec..600cdd9ea7db 100644
--- a/Documentation/firmware_class/firmware_sample_driver.c
+++ b/Documentation/firmware_class/firmware_sample_driver.c
@@ -34,8 +34,7 @@ static void sample_probe_default(void)
const struct firmware *fw_entry;
printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
- if(request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0)
- {
+ if (request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0) {
printk(KERN_ERR
"firmware_sample_driver: Firmware not available\n");
return;
@@ -56,8 +55,7 @@ static void sample_probe_specific(void)
printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
- if(request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0)
- {
+ if (request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0) {
printk(KERN_ERR
"firmware_sample_driver: Firmware load failed\n");
return;
@@ -70,7 +68,7 @@ static void sample_probe_specific(void)
}
static void sample_probe_async_cont(const struct firmware *fw, void *context)
{
- if(!fw){
+ if (!fw) {
printk(KERN_ERR
"firmware_sample_driver: firmware load failed\n");
return;
@@ -88,9 +86,8 @@ static void sample_probe_async(void)
"sample_driver_fw", &ghost_device,
"my device pointer",
sample_probe_async_cont);
- if(error){
- printk(KERN_ERR
- "firmware_sample_driver:"
+ if (error) {
+ printk(KERN_ERR "firmware_sample_driver:"
" request_firmware_nowait failed\n");
}
}
@@ -105,6 +102,7 @@ static int sample_init(void)
sample_probe_async();
return 0;
}
+
static void __exit sample_exit(void)
{
}
OpenPOWER on IntegriCloud