Commit 6feb5c82 authored by Xiangyang Zhang's avatar Xiangyang Zhang Committed by Greg Kroah-Hartman

staging: pi433: fixed coding style issues

space required before the open parenthesis, open brace should be
on previous line.
Signed-off-by: default avatarXiangyang Zhang <xyz.sun.ok@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08f7c8bb
...@@ -1125,14 +1125,13 @@ static int pi433_probe(struct spi_device *spi) ...@@ -1125,14 +1125,13 @@ static int pi433_probe(struct spi_device *spi)
if (retval < 0) if (retval < 0)
return retval; return retval;
switch(retval) switch (retval) {
{ case 0x24:
case 0x24: dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval);
dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval); break;
break; default:
default: dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval);
dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval); return -ENODEV;
return -ENODEV;
} }
/* Allocate driver data */ /* Allocate driver data */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment