mp3309c.c (d37831e0594b14320d850748c98046accf58c4b9) | mp3309c.c (7ee6478d5aa957d796a18e8c0e63943b038acf58) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Driver for MPS MP3309C White LED driver with I2C interface 4 * 5 * This driver support both analog (by I2C commands) and PWM dimming control 6 * modes. 7 * 8 * Copyright (C) 2023 ASEM Srl --- 343 unchanged lines hidden (view full) --- 352 353 ret = mp3309c_parse_fwnode(chip, pdata); 354 if (ret) 355 return ret; 356 } 357 chip->pdata = pdata; 358 359 /* Backlight properties */ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Driver for MPS MP3309C White LED driver with I2C interface 4 * 5 * This driver support both analog (by I2C commands) and PWM dimming control 6 * modes. 7 * 8 * Copyright (C) 2023 ASEM Srl --- 343 unchanged lines hidden (view full) --- 352 353 ret = mp3309c_parse_fwnode(chip, pdata); 354 if (ret) 355 return ret; 356 } 357 chip->pdata = pdata; 358 359 /* Backlight properties */ |
360 memset(&props, 0, sizeof(struct backlight_properties)); |
|
360 props.brightness = pdata->default_brightness; 361 props.max_brightness = pdata->max_brightness; 362 props.scale = BACKLIGHT_SCALE_LINEAR; 363 props.type = BACKLIGHT_RAW; 364 props.power = FB_BLANK_UNBLANK; 365 props.fb_blank = FB_BLANK_UNBLANK; 366 chip->bl = devm_backlight_device_register(dev, "mp3309c", dev, chip, 367 &mp3309c_bl_ops, &props); --- 59 unchanged lines hidden --- | 361 props.brightness = pdata->default_brightness; 362 props.max_brightness = pdata->max_brightness; 363 props.scale = BACKLIGHT_SCALE_LINEAR; 364 props.type = BACKLIGHT_RAW; 365 props.power = FB_BLANK_UNBLANK; 366 props.fb_blank = FB_BLANK_UNBLANK; 367 chip->bl = devm_backlight_device_register(dev, "mp3309c", dev, chip, 368 &mp3309c_bl_ops, &props); --- 59 unchanged lines hidden --- |