Commit 3ee0275d authored by Stefan Schmidt's avatar Stefan Schmidt

ieee802154: cc2520: fix some kernel coding style errors

Fix some spacing and needed new line.
Signed-off-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
Acked-by: default avatarVarka Bhadram <varkabhadram@gmail.com>
Signed-off-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
parent 16869e47
...@@ -648,7 +648,7 @@ cc2520_set_channel(struct ieee802154_hw *hw, u8 page, u8 channel) ...@@ -648,7 +648,7 @@ cc2520_set_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
BUG_ON(channel > CC2520_MAXCHANNEL); BUG_ON(channel > CC2520_MAXCHANNEL);
ret = cc2520_write_register(priv, CC2520_FREQCTRL, ret = cc2520_write_register(priv, CC2520_FREQCTRL,
11 + 5*(channel - 11)); 11 + 5 * (channel - 11));
return ret; return ret;
} }
...@@ -929,6 +929,7 @@ static int cc2520_get_platform_data(struct spi_device *spi, ...@@ -929,6 +929,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
if (!np) { if (!np) {
struct cc2520_platform_data *spi_pdata = spi->dev.platform_data; struct cc2520_platform_data *spi_pdata = spi->dev.platform_data;
if (!spi_pdata) if (!spi_pdata)
return -ENOENT; return -ENOENT;
*pdata = *spi_pdata; *pdata = *spi_pdata;
......
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