Files
BPI-CM9-Linux/aml-comp/hardware/amlogic/arm-isp-6.12/aml_isp5/driver/lens/lens-debugfs.h
T

39 lines
808 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Shared procfs focus control for aml_isp5 lens drivers.
*/
#ifndef _LENS_DEBUGFS_H_
#define _LENS_DEBUGFS_H_
#include <linux/device.h>
#include <linux/types.h>
struct v4l2_ctrl;
struct aml_lens_debugfs;
struct aml_lens_debugfs_cfg {
struct device *dev;
const char *name_prefix;
struct v4l2_ctrl *focus;
u32 max_focus;
};
#if IS_ENABLED(CONFIG_PROC_FS)
struct aml_lens_debugfs *aml_lens_debugfs_create(
const struct aml_lens_debugfs_cfg *cfg);
void aml_lens_debugfs_remove(struct aml_lens_debugfs *dbg);
#else
static inline struct aml_lens_debugfs *aml_lens_debugfs_create(
const struct aml_lens_debugfs_cfg *cfg)
{
return NULL;
}
static inline void aml_lens_debugfs_remove(struct aml_lens_debugfs *dbg)
{
}
#endif
#endif /* _LENS_DEBUGFS_H_ */