Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac561494 authored by Joe Perches's avatar Joe Perches Committed by Guenter Roeck
Browse files

hwmon: (asus_atk0110) Use pr_fmt and pr_<level>



Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent 4d630e2b
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -5,6 +5,8 @@
 * See COPYING in the top level directory of the kernel tree.
 * See COPYING in the top level directory of the kernel tree.
 */
 */


#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/debugfs.h>
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/hwmon.h>
#include <linux/hwmon.h>
@@ -1414,14 +1416,13 @@ static int __init atk0110_init(void)


	/* Make sure it's safe to access the device through ACPI */
	/* Make sure it's safe to access the device through ACPI */
	if (!acpi_resources_are_enforced()) {
	if (!acpi_resources_are_enforced()) {
		pr_err("atk: Resources not safely usable due to "
		pr_err("Resources not safely usable due to acpi_enforce_resources kernel parameter\n");
		       "acpi_enforce_resources kernel parameter\n");
		return -EBUSY;
		return -EBUSY;
	}
	}


	ret = acpi_bus_register_driver(&atk_driver);
	ret = acpi_bus_register_driver(&atk_driver);
	if (ret)
	if (ret)
		pr_info("atk: acpi_bus_register_driver failed: %d\n", ret);
		pr_info("acpi_bus_register_driver failed: %d\n", ret);


	return ret;
	return ret;
}
}