12 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
14 #include <linux/module.h>
15 #include <linux/kernel.h>
22 static int genericbl_intensity;
27 #define GENERICBL_BATTLOW BL_CORE_DRIVER1
31 int intensity = bd->
props.brightness;
44 genericbl_intensity = intensity;
54 return genericbl_intensity;
70 backlight_update_status(generic_backlight_device);
77 .get_brightness = genericbl_get_intensity,
78 .update_status = genericbl_send_intensity,
85 const char *
name =
"generic-bl";
88 bl_machinfo = machinfo;
93 name = machinfo->
name;
103 platform_set_drvdata(pdev, bd);
107 backlight_update_status(bd);
109 generic_backlight_device = bd;
111 pr_info(
"Generic Backlight Driver Initialized.\n");
120 bd->
props.brightness = 0;
121 backlight_update_status(bd);
125 pr_info(
"Generic Backlight Driver Unloaded\n");
130 .probe = genericbl_probe,
131 .remove = genericbl_remove,
133 .name =
"generic-bl",