12 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
15 #include <linux/device.h>
17 #include <linux/kernel.h>
18 #include <linux/module.h>
22 #include <mach/hardware.h>
26 #define BL_MAX_BRIGHT 255
27 #define BL_DEF_BRIGHT 25
43 pr_err(
"get brightness timeout\n");
64 pr_info(
"brightness off timeout\n");
75 pr_info(
"failed to set brightness\n");
86 pr_err(
"set brightness failed\n");
99 .get_brightness = jornada_bl_get_brightness,
100 .update_status = jornada_bl_update_status,
114 &jornada_bl_ops, &
props);
118 pr_err(
"failed to register device, err=%x\n", ret);
127 jornada_bl_update_status(bd);
129 platform_set_drvdata(pdev, bd);
130 pr_info(
"HP Jornada 700 series backlight driver\n");
145 .probe = jornada_bl_probe,
146 .remove = jornada_bl_remove,
148 .name =
"jornada_bl",