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>
65 * This is the address in EC space and commands used to control LCD backlight:
67 * Two steps needed to change the LCD backlight:
68 * 1. write the backlight percentage into OT_EC_BL_BRIGHTNESS_ADDRESS;
71 * To read the LCD back light, just read out the value from
74 * LCD backlight brightness range: 0 - 100 (OT_EC_BL_BRIGHTNESS_MAX)
124 rfkill_dev = rfkill_alloc(name, &oaktrail_device->dev, type, in oaktrail_rfkill_new()
127 return ERR_PTR(-ENOMEM); in oaktrail_rfkill_new()
161 wifi_rfkill = oaktrail_rfkill_new("oaktrail-wifi", in oaktrail_rfkill_init()
170 bt_rfkill = oaktrail_rfkill_new("oaktrail-bluetooth", in oaktrail_rfkill_init()
179 gps_rfkill = oaktrail_rfkill_new("oaktrail-gps", in oaktrail_rfkill_init()
188 wwan_rfkill = oaktrail_rfkill_new("oaktrail-wwan", in oaktrail_rfkill_init()
205 /* backlight */
216 u8 percent = (u8) b->props.brightness; in set_backlight_brightness()
218 return -EINVAL; in set_backlight_brightness()
240 &oaktrail_device->dev, NULL, in oaktrail_backlight_init()
246 pr_warn("Unable to register backlight device\n"); in oaktrail_backlight_init()
252 bd->props.brightness = get_backlight_brightness(bd); in oaktrail_backlight_init()
253 bd->props.power = FB_BLANK_UNBLANK; in oaktrail_backlight_init()
284 pr_info("Identified model '%s'\n", id->ident); in dmi_check_cb()
306 return -ENODEV; in oaktrail_init()
310 pr_err("Platform not recognized (You could try the module's force-parameter)"); in oaktrail_init()
311 return -ENODEV; in oaktrail_init()
320 oaktrail_device = platform_device_alloc(DRIVER_NAME, -1); in oaktrail_init()
323 ret = -ENOMEM; in oaktrail_init()