Skip to content

Commit 332a819

Browse files
jjuhlgregkh
authored andcommitted
staging: olpc_dcon.c: strings printed with printk() put on a single line
Quoted strings that were broken over multiple lines are put on a single line for easier grep'ability. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 19f798a commit 332a819

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

‎drivers/staging/olpc_dcon/olpc_dcon.c‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ static int dcon_hw_init(struct dcon_priv *dcon, int is_init)
7171

7272
ver = dcon_read(dcon, DCON_REG_ID);
7373
if ((ver >> 8) != 0xDC) {
74-
printk(KERN_ERR "olpc-dcon: DCON ID not 0xDCxx: 0x%04x "
75-
"instead.\n", ver);
74+
printk(KERN_ERR "olpc-dcon: DCON ID not 0xDCxx: 0x%04x instead.\n",
75+
ver);
7676
rc = -ENXIO;
7777
goto err;
7878
}
@@ -136,8 +136,8 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
136136
x = 1;
137137
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
138138
if (x) {
139-
printk(KERN_WARNING "olpc-dcon: unable to force dcon "
140-
"to power up: %d!\n", x);
139+
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power up: %d!\n",
140+
x);
141141
return x;
142142
}
143143
msleep(10); /* we'll be conservative */
@@ -150,8 +150,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
150150
x = dcon_read(dcon, DCON_REG_ID);
151151
}
152152
if (x < 0) {
153-
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's "
154-
"smbus, reasserting power and praying.\n");
153+
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's smbus, reasserting power and praying.\n");
155154
BUG_ON(olpc_board_at_least(olpc_board(0xc2)));
156155
x = 0;
157156
olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
@@ -222,8 +221,8 @@ static void dcon_sleep(struct dcon_priv *dcon, bool sleep)
222221
x = 0;
223222
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
224223
if (x)
225-
printk(KERN_WARNING "olpc-dcon: unable to force dcon "
226-
"to power down: %d!\n", x);
224+
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power down: %d!\n",
225+
x);
227226
else
228227
dcon->asleep = sleep;
229228
} else {
@@ -232,8 +231,8 @@ static void dcon_sleep(struct dcon_priv *dcon, bool sleep)
232231
dcon->disp_mode |= MODE_BL_ENABLE;
233232
x = dcon_bus_stabilize(dcon, 1);
234233
if (x)
235-
printk(KERN_WARNING "olpc-dcon: unable to reinit dcon"
236-
" hardware: %d!\n", x);
234+
printk(KERN_WARNING "olpc-dcon: unable to reinit dcon hardware: %d!\n",
235+
x);
237236
else
238237
dcon->asleep = sleep;
239238

0 commit comments

Comments
 (0)