Lines Matching +full:max +full:- +full:brightness
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2006-2009 Kristoffer Ericson <kristoffer.ericson@gmail.com>
37 dev_err(&bd->dev, "get brightness timeout\n"); in jornada_bl_get_brightness()
39 return -ETIMEDOUT; in jornada_bl_get_brightness()
47 return BL_MAX_BRIGHT - ret; in jornada_bl_get_brightness()
60 dev_info(&bd->dev, "brightness off timeout\n"); in jornada_bl_update_status()
64 ret = -ETIMEDOUT; in jornada_bl_update_status()
71 dev_info(&bd->dev, "failed to set brightness\n"); in jornada_bl_update_status()
72 ret = -ETIMEDOUT; in jornada_bl_update_status()
79 * please note that maximum brightness is 255, in jornada_bl_update_status()
81 * invert the value (MAX VALUE - NEW VALUE). in jornada_bl_update_status()
83 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) in jornada_bl_update_status()
85 dev_err(&bd->dev, "set brightness failed\n"); in jornada_bl_update_status()
86 ret = -ETIMEDOUT; in jornada_bl_update_status()
115 bd = devm_backlight_device_register(&pdev->dev, S1D_DEVICENAME, in jornada_bl_probe()
116 &pdev->dev, NULL, &jornada_bl_ops, in jornada_bl_probe()
120 dev_err(&pdev->dev, "failed to register device, err=%x\n", ret); in jornada_bl_probe()
124 bd->props.power = FB_BLANK_UNBLANK; in jornada_bl_probe()
125 bd->props.brightness = BL_DEF_BRIGHT; in jornada_bl_probe()
127 * note. make sure max brightness is set otherwise in jornada_bl_probe()
128 * you will get seemingly non-related errors when in jornada_bl_probe()
129 * trying to change brightness in jornada_bl_probe()
134 dev_info(&pdev->dev, "HP Jornada 700 series backlight driver\n"); in jornada_bl_probe()