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

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

Merge "msm: synx: remove synx handle details from logging"

parents b6a0597c 7084d65a
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019, 2022, The Linux Foundation. All rights reserved.
 */

#include <linux/io.h>
@@ -19,7 +19,7 @@

struct dentry *my_direc;
const char delim[] = ",";
int columns = NAME_COLUMN | ID_COLUMN |
int columns = NAME_COLUMN |
	BOUND_COLUMN | STATE_COLUMN | ERROR_CODES;

void populate_bound_rows(
@@ -48,7 +48,6 @@ static ssize_t synx_table_read(struct file *file,
	struct error_node *err_node, *err_node_tmp;
	struct synx_table_row *row;
	char *dbuf, *cur, *end;
	struct synx_obj_node *obj_node;

	int i = 0;
	int state = SYNX_STATE_INVALID;
@@ -65,8 +64,6 @@ static ssize_t synx_table_read(struct file *file,
		cur += scnprintf(cur, end - cur, "|   Bound   |");
	if (columns & STATE_COLUMN)
		cur += scnprintf(cur, end - cur, "|  Status  |");
	if (columns & ID_COLUMN)
		cur += scnprintf(cur, end - cur, "|    ID    |");
	cur += scnprintf(cur, end - cur, "\n");
	for (i = 0; i < SYNX_MAX_OBJS; i++) {
		row = &dev->synx_table[i];
@@ -94,13 +91,6 @@ static ssize_t synx_table_read(struct file *file,
				cur,
				end);
		}
		if (columns & ID_COLUMN) {
			list_for_each_entry(obj_node,
				&row->synx_obj_list, list) {
				cur += scnprintf(cur, end - cur,
					"|0x%8x|", obj_node->synx_obj);
				}
		}
		mutex_unlock(&dev->row_locks[row->index]);
		cur += scnprintf(cur, end - cur, "\n");
	}