Lines Matching +full:lcd +full:- +full:backlight
1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010-2011 Intel Corporation
13 * 1. registers itself in the Linux backlight control in
14 * /sys/class/backlight/intel_oaktrail/
28 #include <linux/backlight.h>
64 * This is the address in EC space and commands used to control LCD backlight:
66 * Two steps needed to change the LCD backlight:
67 * 1. write the backlight percentage into OT_EC_BL_BRIGHTNESS_ADDRESS;
70 * To read the LCD back light, just read out the value from
73 * LCD backlight brightness range: 0 - 100 (OT_EC_BL_BRIGHTNESS_MAX)
123 rfkill_dev = rfkill_alloc(name, &oaktrail_device->dev, type, in oaktrail_rfkill_new()
126 return ERR_PTR(-ENOMEM); in oaktrail_rfkill_new()
160 wifi_rfkill = oaktrail_rfkill_new("oaktrail-wifi", in oaktrail_rfkill_init()
169 bt_rfkill = oaktrail_rfkill_new("oaktrail-bluetooth", in oaktrail_rfkill_init()
178 gps_rfkill = oaktrail_rfkill_new("oaktrail-gps", in oaktrail_rfkill_init()
187 wwan_rfkill = oaktrail_rfkill_new("oaktrail-wwan", in oaktrail_rfkill_init()
204 /* backlight */
215 u8 percent = (u8) b->props.brightness; in set_backlight_brightness()
217 return -EINVAL; in set_backlight_brightness()
239 &oaktrail_device->dev, NULL, in oaktrail_backlight_init()
245 pr_warn("Unable to register backlight device\n"); in oaktrail_backlight_init()
251 bd->props.brightness = get_backlight_brightness(bd); in oaktrail_backlight_init()
252 bd->props.power = BACKLIGHT_POWER_ON; in oaktrail_backlight_init()
277 pr_info("Identified model '%s'\n", id->ident); in dmi_check_cb()
299 return -ENODEV; in oaktrail_init()
303 pr_err("Platform not recognized (You could try the module's force-parameter)"); in oaktrail_init()
304 return -ENODEV; in oaktrail_init()
316 ret = -ENOMEM; in oaktrail_init()