FELS (Qualcomm fatal error logging) is referenced by kernel/modules.bzl, Kconfig.msm and BUILD.bazel, and used by the display panel, MMC error logging and Sony's battery charger extension, but its source is not in Sony's 73.1.A.2.74 open source archive. Add a minimal fels.ko with the same API (fels_log, fels_debug_log) that writes the events to the kernel log, so those modules build and load as on stock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
18 lines
605 B
C
18 lines
605 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Minimal FELS for RedLintuROM. Qualcomm's FELS (fault/error logging) is not in
|
|
* Sony's 73.1.A.2.74 open source archive, but the display panel, MMC error
|
|
* logging and Sony's battery charger extension call it. This keeps the same API
|
|
* and just writes the events to the kernel log.
|
|
*/
|
|
#ifndef _FELS_H
|
|
#define _FELS_H
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
int fels_log(int category, int level, int error_code, int arg0, int arg1, int arg2,
|
|
int arg3);
|
|
__printf(3, 4) int fels_debug_log(int category, int level, const char *fmt, ...);
|
|
|
|
#endif /* _FELS_H */
|