appledisplay.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) appledisplay.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * Apple Cinema Display driver
3 *
4 * Copyright (C) 2006 Michael Hanselmann (linux-kernel@hansmi.ch)
5 *
6 * Thanks to Caskey L. Dickson for his work with acdctl.
7 *
8 * This program is free software; you can redistribute it and/or modify

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

277 dev_err(&iface->dev, "Submitting URB failed\n");
278 goto error;
279 }
280
281 /* Register backlight device */
282 snprintf(bl_name, sizeof(bl_name), "appledisplay%d",
283 atomic_inc_return(&count_displays) - 1);
284 memset(&props, 0, sizeof(struct backlight_properties));
1/*
2 * Apple Cinema Display driver
3 *
4 * Copyright (C) 2006 Michael Hanselmann (linux-kernel@hansmi.ch)
5 *
6 * Thanks to Caskey L. Dickson for his work with acdctl.
7 *
8 * This program is free software; you can redistribute it and/or modify

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

277 dev_err(&iface->dev, "Submitting URB failed\n");
278 goto error;
279 }
280
281 /* Register backlight device */
282 snprintf(bl_name, sizeof(bl_name), "appledisplay%d",
283 atomic_inc_return(&count_displays) - 1);
284 memset(&props, 0, sizeof(struct backlight_properties));
285 props.type = BACKLIGHT_RAW;
285 props.max_brightness = 0xff;
286 pdata->bd = backlight_device_register(bl_name, NULL, pdata,
287 &appledisplay_bl_data, &props);
288 if (IS_ERR(pdata->bd)) {
289 dev_err(&iface->dev, "Backlight registration failed\n");
290 retval = PTR_ERR(pdata->bd);
291 goto error;
292 }

--- 88 unchanged lines hidden ---
286 props.max_brightness = 0xff;
287 pdata->bd = backlight_device_register(bl_name, NULL, pdata,
288 &appledisplay_bl_data, &props);
289 if (IS_ERR(pdata->bd)) {
290 dev_err(&iface->dev, "Backlight registration failed\n");
291 retval = PTR_ERR(pdata->bd);
292 goto error;
293 }

--- 88 unchanged lines hidden ---