Skip to content

Commit 9bfb48d

Browse files
6by9popcornmix
authored andcommitted
vcsm: Replace SM_PDE_T with sm_pde_t
Follows the Linux kernel coding style Signed-off-by: Dave Stevenson <[email protected]>
1 parent 8a662e9 commit 9bfb48d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/char/broadcom/vc_sm/vmcs_sm.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static const char *const sm_stats_human_read[] = {
101101
};
102102

103103
typedef int (*VC_SM_SHOW) (struct seq_file *s, void *v);
104-
struct SM_PDE_T {
104+
struct sm_pde_t {
105105
VC_SM_SHOW show; /* Debug fs function hookup. */
106106
struct dentry *dir_entry; /* Debug fs directory entry. */
107107
void *priv_data; /* Private data */
@@ -164,8 +164,8 @@ struct sm_priv_data_t {
164164
pid_t pid; /* PID of creator. */
165165

166166
struct dentry *dir_pid; /* Debug fs entries root. */
167-
struct SM_PDE_T dir_stats; /* Debug fs entries statistics sub-tree. */
168-
struct SM_PDE_T dir_res; /* Debug fs resource sub-tree. */
167+
struct sm_pde_t dir_stats; /* Debug fs entries statistics sub-tree. */
168+
struct sm_pde_t dir_res; /* Debug fs resource sub-tree. */
169169

170170
int restart_sys; /* Tracks restart on interrupt. */
171171
enum vc_sm_msg_type int_action; /* Interrupted action. */
@@ -179,8 +179,8 @@ struct sm_state_t {
179179
struct sm_instance *sm_handle; /* Handle for videocore service. */
180180
struct dentry *dir_root; /* Debug fs entries root. */
181181
struct dentry *dir_alloc; /* Debug fs entries allocations. */
182-
struct SM_PDE_T dir_stats; /* Debug fs entries statistics sub-tree. */
183-
struct SM_PDE_T dir_state; /* Debug fs entries state sub-tree. */
182+
struct sm_pde_t dir_stats; /* Debug fs entries statistics sub-tree. */
183+
struct sm_pde_t dir_state; /* Debug fs entries state sub-tree. */
184184
struct dentry *debug; /* Debug fs entries debug. */
185185

186186
struct mutex map_lock; /* Global map lock. */
@@ -636,9 +636,9 @@ static int vc_sm_statistics_show(struct seq_file *s, void *v)
636636
struct sm_priv_data_t *file_data;
637637
struct sm_resource_t *resource;
638638
int res_count = 0;
639-
struct SM_PDE_T *p_pde;
639+
struct sm_pde_t *p_pde;
640640

641-
p_pde = (struct SM_PDE_T *)(s->private);
641+
p_pde = (struct sm_pde_t *)(s->private);
642642
file_data = (struct sm_priv_data_t *)(p_pde->priv_data);
643643

644644
if (file_data == NULL)
@@ -693,9 +693,9 @@ static int vc_sm_alloc_show(struct seq_file *s, void *v)
693693
struct sm_priv_data_t *file_data;
694694
struct sm_resource_t *resource;
695695
int alloc_count = 0;
696-
struct SM_PDE_T *p_pde;
696+
struct sm_pde_t *p_pde;
697697

698-
p_pde = (struct SM_PDE_T *)(s->private);
698+
p_pde = (struct sm_pde_t *)(s->private);
699699
file_data = (struct sm_priv_data_t *)(p_pde->priv_data);
700700

701701
if (!file_data)
@@ -738,9 +738,9 @@ static int vc_sm_alloc_show(struct seq_file *s, void *v)
738738

739739
static int vc_sm_seq_file_show(struct seq_file *s, void *v)
740740
{
741-
struct SM_PDE_T *sm_pde;
741+
struct sm_pde_t *sm_pde;
742742

743-
sm_pde = (struct SM_PDE_T *)(s->private);
743+
sm_pde = (struct sm_pde_t *)(s->private);
744744

745745
if (sm_pde && sm_pde->show)
746746
sm_pde->show(s, v);

0 commit comments

Comments
 (0)