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

Commit 326497cf authored by Satyajit Desai's avatar Satyajit Desai
Browse files

coresight: use octal numbers for permission bits



Based on checkpatch update converting bad symbolic permission to
octal numbers. The reasoning behind it is that Symbolic macro
name are hard to understand and seem like random line noise it
would be better to use octal number which are easier to parse.

Change-Id: I279661af5a6afc2ea3e08c2442cd53891f97ff23
Signed-off-by: default avatarSatyajit Desai <sadesai@codeaurora.org>
parent f3ab5431
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2012, 2016, The Linux Foundation. All rights reserved.
 *
 * Description: CoreSight Program Flow Trace driver
 *
@@ -45,7 +45,7 @@
 * remain consistent with existing use cases for now.
 */
static int boot_enable;
module_param_named(boot_enable, boot_enable, int, S_IRUGO);
module_param_named(boot_enable, boot_enable, int, 0444);

/* The number of ETM/PTM currently registered */
static int etm_count;
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -40,7 +40,7 @@
#include "coresight-etm-perf.h"

static int boot_enable;
module_param_named(boot_enable, boot_enable, int, S_IRUGO);
module_param_named(boot_enable, boot_enable, int, 0444);

/* The number of ETMv4 currently registered */
static int etm4_count;
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static int boot_nr_channel;
 * remain consistent with existing use cases for now.
 */
module_param_named(
	boot_nr_channel, boot_nr_channel, int, S_IRUGO
	boot_nr_channel, boot_nr_channel, int, 0444
);

static void stm_hwevent_enable_hw(struct stm_drvdata *drvdata)
+8 −8
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ static ssize_t tpda_store_trig_async_enable(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(trig_async_enable, S_IRUGO | S_IWUSR,
static DEVICE_ATTR(trig_async_enable, 0644,
		   tpda_show_trig_async_enable,
		   tpda_store_trig_async_enable);

@@ -297,7 +297,7 @@ static ssize_t tpda_store_trig_flag_ts_enable(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(trig_flag_ts_enable, S_IRUGO | S_IWUSR,
static DEVICE_ATTR(trig_flag_ts_enable, 0644,
		   tpda_show_trig_flag_ts_enable,
		   tpda_store_trig_flag_ts_enable);

@@ -330,7 +330,7 @@ static ssize_t tpda_store_trig_freq_enable(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(trig_freq_enable, S_IRUGO | S_IWUSR,
static DEVICE_ATTR(trig_freq_enable, 0644,
		   tpda_show_trig_freq_enable,
		   tpda_store_trig_freq_enable);

@@ -363,7 +363,7 @@ static ssize_t tpda_store_freq_ts_enable(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(freq_ts_enable, S_IRUGO | S_IWUSR, tpda_show_freq_ts_enable,
static DEVICE_ATTR(freq_ts_enable, 0644, tpda_show_freq_ts_enable,
		   tpda_store_freq_ts_enable);

static ssize_t tpda_show_freq_req_val(struct device *dev,
@@ -392,7 +392,7 @@ static ssize_t tpda_store_freq_req_val(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(freq_req_val, S_IRUGO | S_IWUSR, tpda_show_freq_req_val,
static DEVICE_ATTR(freq_req_val, 0644, tpda_show_freq_req_val,
		   tpda_store_freq_req_val);

static ssize_t tpda_show_freq_req(struct device *dev,
@@ -424,7 +424,7 @@ static ssize_t tpda_store_freq_req(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(freq_req, S_IRUGO | S_IWUSR, tpda_show_freq_req,
static DEVICE_ATTR(freq_req, 0644, tpda_show_freq_req,
		   tpda_store_freq_req);

static ssize_t tpda_show_global_flush_req(struct device *dev,
@@ -478,7 +478,7 @@ static ssize_t tpda_store_global_flush_req(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(global_flush_req, S_IRUGO | S_IWUSR,
static DEVICE_ATTR(global_flush_req, 0644,
		   tpda_show_global_flush_req, tpda_store_global_flush_req);

static ssize_t tpda_show_port_flush_req(struct device *dev,
@@ -530,7 +530,7 @@ static ssize_t tpda_store_port_flush_req(struct device *dev,
	mutex_unlock(&drvdata->lock);
	return size;
}
static DEVICE_ATTR(port_flush_req, S_IRUGO | S_IWUSR, tpda_show_port_flush_req,
static DEVICE_ATTR(port_flush_req, 0644, tpda_show_port_flush_req,
		   tpda_store_port_flush_req);

static struct attribute *tpda_attrs[] = {
+69 −69

File changed.

Preview size limit exceeded, changes collapsed.