Skip to content

Commit

Permalink
firmware_sample_driver.c: fix coding style
Browse files Browse the repository at this point in the history
Fix coding style in firmware_sample_driver...

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
  • Loading branch information
Pavel Machek authored and Jesper Juhl committed Apr 21, 2008
1 parent 6f69a6d commit 58da495
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Documentation/firmware_class/firmware_sample_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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");
}
}
Expand All @@ -105,6 +102,7 @@ static int sample_init(void)
sample_probe_async();
return 0;
}

static void __exit sample_exit(void)
{
}
Expand Down

0 comments on commit 58da495

Please sign in to comment.