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)
24 lines
561 B
C
24 lines
561 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef EADM_SCH_H
|
|
#define EADM_SCH_H
|
|
|
|
#include <linux/completion.h>
|
|
#include <linux/device.h>
|
|
#include <linux/timer.h>
|
|
#include <linux/list.h>
|
|
#include "orb.h"
|
|
|
|
struct eadm_private {
|
|
union orb orb;
|
|
enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state;
|
|
struct completion *completion;
|
|
struct subchannel *sch;
|
|
struct timer_list timer;
|
|
struct list_head head;
|
|
} __aligned(8);
|
|
|
|
#define get_eadm_private(n) ((struct eadm_private *)dev_get_drvdata(&n->dev))
|
|
#define set_eadm_private(n, p) (dev_set_drvdata(&n->dev, p))
|
|
|
|
#endif
|