Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
19 lines
438 B
C
19 lines
438 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_I2C_ALGO_PXA_H
|
|
#define _LINUX_I2C_ALGO_PXA_H
|
|
|
|
typedef enum i2c_slave_event_e {
|
|
I2C_SLAVE_EVENT_START_READ,
|
|
I2C_SLAVE_EVENT_START_WRITE,
|
|
I2C_SLAVE_EVENT_STOP
|
|
} i2c_slave_event_t;
|
|
|
|
struct i2c_slave_client {
|
|
void *data;
|
|
void (*event)(void *ptr, i2c_slave_event_t event);
|
|
int (*read) (void *ptr);
|
|
void (*write)(void *ptr, unsigned int val);
|
|
};
|
|
|
|
#endif /* _LINUX_I2C_ALGO_PXA_H */
|