Displaying 1 result from an estimated 1 matches for "nouveau_backlight_config".
2013 Sep 01
0
[PATCH] drm/nv50: Fix backlight not working when PWM_DIV is uninitialised
...c b/drivers/gpu/drm/nouveau/nouveau_backlight.c
index 2ffad21..63f3f26 100644
--- a/drivers/gpu/drm/nouveau/nouveau_backlight.c
+++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c
@@ -174,6 +174,23 @@ static const struct backlight_ops nva3_bl_ops = {
.update_status = nva3_set_intensity,
};
+int
+nouveau_backlight_config(struct nouveau_drm *drm)
+{
+ struct backlight_device *bd = drm->backlight;
+ struct nouveau_encoder *nv_encoder = bl_get_data(bd);
+ struct nouveau_device *device = nv_device(drm->device);
+ int or = nv_encoder->or;
+
+ if (device->card_type == NV_50 &&
+ (device->chipse...