Skip to content

Commit

Permalink
nvmem: sunxi: trivial: fix code style
Browse files Browse the repository at this point in the history
this pacthset try to fix the code style for sunxi.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Caesar Wang authored and Greg Kroah-Hartman committed Feb 8, 2016
1 parent 313a72f commit d16abd3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/nvmem/sunxi_sid.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/


#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
Expand All @@ -27,7 +25,6 @@
#include <linux/slab.h>
#include <linux/random.h>


static struct nvmem_config econfig = {
.name = "sunxi-sid",
.read_only = true,
Expand Down Expand Up @@ -55,8 +52,8 @@ static u8 sunxi_sid_read_byte(const struct sunxi_sid *sid,
}

static int sunxi_sid_read(void *context,
const void *reg, size_t reg_size,
void *val, size_t val_size)
const void *reg, size_t reg_size,
void *val, size_t val_size)
{
struct sunxi_sid *sid = context;
unsigned int offset = *(u32 *)reg;
Expand Down Expand Up @@ -130,7 +127,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
if (IS_ERR(nvmem))
return PTR_ERR(nvmem);

randomness = kzalloc(sizeof(u8) * size, GFP_KERNEL);
randomness = kzalloc(sizeof(u8) * (size), GFP_KERNEL);
if (!randomness) {
ret = -EINVAL;
goto err_unreg_nvmem;
Expand Down

0 comments on commit d16abd3

Please sign in to comment.