Skip to content

Commit

Permalink
da9030_battery: Don't use 0 as NULL
Browse files Browse the repository at this point in the history
Noticed the new warning:

  CHECK   drivers/power/da9030_battery.c
drivers/power/da9030_battery.c:190:68: warning: Using plain integer as NULL pointer

This commit fixes the issue.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Anton Vorontsov committed Aug 23, 2012
1 parent b1b5687 commit c084e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/da9030_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ static const struct file_operations bat_debug_fops = {

static struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger)
{
charger->debug_file = debugfs_create_file("charger", 0666, 0, charger,
&bat_debug_fops);
charger->debug_file = debugfs_create_file("charger", 0666, NULL,
charger, &bat_debug_fops);
return charger->debug_file;
}

Expand Down

0 comments on commit c084e09

Please sign in to comment.