Source: opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII: XQ-GE74, XQ-GE54, SO-51G, SOG17, A601SO, XQ-GE44), unmodified. Co-Authored-By: Claude Opus 5.5 <[email protected]>
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _LINUX_QTI_REGMAP_DEBUGFS_H_
|
|
#define _LINUX_QTI_REGMAP_DEBUGFS_H_
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/regmap.h>
|
|
|
|
#if IS_ENABLED(CONFIG_REGMAP_QTI_DEBUGFS)
|
|
|
|
int regmap_qti_debugfs_register(struct device *dev, struct regmap *regmap);
|
|
void regmap_qti_debugfs_unregister(struct regmap *regmap);
|
|
int devm_regmap_qti_debugfs_register(struct device *dev, struct regmap *regmap);
|
|
void devm_regmap_qti_debugfs_unregister(struct regmap *regmap);
|
|
|
|
#else
|
|
|
|
static inline int regmap_qti_debugfs_register(struct device *dev,
|
|
struct regmap *regmap)
|
|
{ return 0; }
|
|
static inline void regmap_qti_debugfs_unregister(struct regmap *regmap)
|
|
{ }
|
|
static inline int devm_regmap_qti_debugfs_register(struct device *dev,
|
|
struct regmap *regmap)
|
|
{ return 0; }
|
|
static inline void devm_regmap_qti_debugfs_unregister(struct regmap *regmap)
|
|
{ }
|
|
|
|
#endif
|
|
#endif
|