Rev 3764 | Rev 6104 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3764 | Rev 5078 | ||
---|---|---|---|
Line 390... | Line 390... | ||
390 | memset(&props, 0, sizeof(props)); |
390 | memset(&props, 0, sizeof(props)); |
391 | props.max_brightness = RADEON_MAX_BL_LEVEL; |
391 | props.max_brightness = RADEON_MAX_BL_LEVEL; |
392 | props.type = BACKLIGHT_RAW; |
392 | props.type = BACKLIGHT_RAW; |
393 | snprintf(bl_name, sizeof(bl_name), |
393 | snprintf(bl_name, sizeof(bl_name), |
394 | "radeon_bl%d", dev->primary->index); |
394 | "radeon_bl%d", dev->primary->index); |
395 | bd = backlight_device_register(bl_name, &drm_connector->kdev, |
395 | bd = backlight_device_register(bl_name, drm_connector->kdev, |
396 | pdata, &radeon_backlight_ops, &props); |
396 | pdata, &radeon_backlight_ops, &props); |
397 | if (IS_ERR(bd)) { |
397 | if (IS_ERR(bd)) { |
398 | DRM_ERROR("Backlight registration failed\n"); |
398 | DRM_ERROR("Backlight registration failed\n"); |
399 | goto error; |
399 | goto error; |
400 | } |
400 | } |