dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
44 lines
866 B
C
44 lines
866 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* pca9532.h - platform data structure for pca9532 led controller
|
|
*
|
|
* Copyright (C) 2008 Riku Voipio <riku.voipio@movial.fi>
|
|
*
|
|
* Datasheet: http://www.nxp.com/acrobat/datasheets/PCA9532_3.pdf
|
|
*/
|
|
|
|
#ifndef __LINUX_PCA9532_H
|
|
#define __LINUX_PCA9532_H
|
|
|
|
#include <linux/leds.h>
|
|
#include <linux/workqueue.h>
|
|
#include <dt-bindings/leds/leds-pca9532.h>
|
|
|
|
enum pca9532_state {
|
|
PCA9532_OFF = 0x0,
|
|
PCA9532_ON = 0x1,
|
|
PCA9532_PWM0 = 0x2,
|
|
PCA9532_PWM1 = 0x3,
|
|
PCA9532_KEEP = 0xff,
|
|
};
|
|
|
|
struct pca9532_led {
|
|
u8 id;
|
|
struct i2c_client *client;
|
|
const char *name;
|
|
const char *default_trigger;
|
|
struct led_classdev ldev;
|
|
struct work_struct work;
|
|
u32 type;
|
|
enum pca9532_state state;
|
|
};
|
|
|
|
struct pca9532_platform_data {
|
|
struct pca9532_led leds[16];
|
|
u8 pwm[2];
|
|
u8 psc[2];
|
|
int gpio_base;
|
|
};
|
|
|
|
#endif /* __LINUX_PCA9532_H */
|