Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a52031d0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qti_battery_debug: Remove CONFIG_DEBUG_FS dependency"

parents 45c1f3c5 ce747dee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -610,7 +610,6 @@ config QTI_PMIC_GLINK_CLIENT_DEBUG
config QTI_BATTERY_GLINK_DEBUG
	tristate "Enable support for QTI battery glink debug driver"
	depends on QTI_PMIC_GLINK
	depends on DEBUG_FS
	help
	  Qualcomm Technologies, Inc. battery glink debug driver helps to
	  obtain debug information for battery charging and gauging over PMIC
+7 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ static int get_qbg_context_write(void *data, u64 val)
DEFINE_DEBUGFS_ATTRIBUTE(get_qbg_context_debugfs_ops, NULL,
			get_qbg_context_write, "%llu\n");

#ifdef CONFIG_DEBUG_FS
static int battery_dbg_request_read_votable(struct battery_dbg_dev *bd,
					    u32 id)
{
@@ -669,6 +670,12 @@ static int battery_dbg_add_debugfs(struct battery_dbg_dev *bd)
	debugfs_remove_recursive(bd_dir);
	return rc;
}
#else
static int battery_dbg_add_debugfs(struct battery_dbg_dev *bd)
{
	return 0;
}
#endif

static int battery_dbg_probe(struct platform_device *pdev)
{