提交 8afb1049 编写于 作者: M Mark M. Hoffman

hwmon: (f71882fg) trivial whitespace cleanup

Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
上级 45fb3669
......@@ -614,7 +614,7 @@ static ssize_t store_temp_max_hyst(struct device *dev, struct device_attribute
data->temp_hyst[nr] = val;
/* convert value to register contents */
switch(nr) {
switch (nr) {
case 0:
val = val << 4;
break;
......@@ -748,7 +748,7 @@ static int __devinit f71882fg_probe(struct platform_device * pdev)
int err, i;
u8 start_reg;
if(!(data = kzalloc(sizeof(struct f71882fg_data), GFP_KERNEL)))
if (!(data = kzalloc(sizeof(struct f71882fg_data), GFP_KERNEL)))
return -ENOMEM;
data->addr = platform_get_resource(pdev, IORESOURCE_IO, 0)->start;
......@@ -890,18 +890,18 @@ static int __init f71882fg_device_add(unsigned short address)
int err;
f71882fg_pdev = platform_device_alloc(DRVNAME, address);
if(!f71882fg_pdev)
if (!f71882fg_pdev)
return -ENOMEM;
res.name = f71882fg_pdev->name;
err = platform_device_add_resources(f71882fg_pdev, &res, 1);
if(err) {
if (err) {
printk(KERN_ERR DRVNAME ": Device resource addition failed\n");
goto exit_device_put;
}
err = platform_device_add(f71882fg_pdev);
if(err) {
if (err) {
printk(KERN_ERR DRVNAME ": Device addition failed\n");
goto exit_device_put;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册