hp680_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) hp680_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * Backlight Driver for HP Jornada 680
3 *
4 * Copyright (c) 2005 Andriy Skulysh
5 *
6 * Based on Sharp's Corgi Backlight Driver
7 *
8 * This file is subject to the terms and conditions of the GNU General Public

--- 95 unchanged lines hidden (view full) ---

104};
105
106static int __devinit hp680bl_probe(struct platform_device *pdev)
107{
108 struct backlight_properties props;
109 struct backlight_device *bd;
110
111 memset(&props, 0, sizeof(struct backlight_properties));
1/*
2 * Backlight Driver for HP Jornada 680
3 *
4 * Copyright (c) 2005 Andriy Skulysh
5 *
6 * Based on Sharp's Corgi Backlight Driver
7 *
8 * This file is subject to the terms and conditions of the GNU General Public

--- 95 unchanged lines hidden (view full) ---

104};
105
106static int __devinit hp680bl_probe(struct platform_device *pdev)
107{
108 struct backlight_properties props;
109 struct backlight_device *bd;
110
111 memset(&props, 0, sizeof(struct backlight_properties));
112 props.type = BACKLIGHT_RAW;
112 props.max_brightness = HP680_MAX_INTENSITY;
113 bd = backlight_device_register("hp680-bl", &pdev->dev, NULL,
114 &hp680bl_ops, &props);
115 if (IS_ERR(bd))
116 return PTR_ERR(bd);
117
118 platform_set_drvdata(pdev, bd);
119

--- 59 unchanged lines hidden ---
113 props.max_brightness = HP680_MAX_INTENSITY;
114 bd = backlight_device_register("hp680-bl", &pdev->dev, NULL,
115 &hp680bl_ops, &props);
116 if (IS_ERR(bd))
117 return PTR_ERR(bd);
118
119 platform_set_drvdata(pdev, bd);
120

--- 59 unchanged lines hidden ---