Home
last modified time | relevance | path

Searched refs:thermal_dbg (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/thermal/
H A Dthermal_debugfs.c193 struct thermal_debugfs *thermal_dbg; in thermal_debugfs_add_id() local
196 thermal_dbg = kzalloc(sizeof(*thermal_dbg), GFP_KERNEL); in thermal_debugfs_add_id()
197 if (!thermal_dbg) in thermal_debugfs_add_id()
200 mutex_init(&thermal_dbg->lock); in thermal_debugfs_add_id()
204 thermal_dbg->d_top = debugfs_create_dir(ids, d); in thermal_debugfs_add_id()
205 if (IS_ERR(thermal_dbg->d_top)) { in thermal_debugfs_add_id()
206 kfree(thermal_dbg); in thermal_debugfs_add_id()
210 return thermal_dbg; in thermal_debugfs_add_id()
213 static void thermal_debugfs_remove_id(struct thermal_debugfs *thermal_dbg) in thermal_debugfs_remove_id() argument
215 if (!thermal_dbg) in thermal_debugfs_remove_id()
[all …]