arm: msm: smd: checkpatch clean up of smd/proc_comm
This cleans up coding style. There are no run time changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
This commit is contained in:
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
typedef struct smd_channel smd_channel_t;
|
typedef struct smd_channel smd_channel_t;
|
||||||
|
|
||||||
|
extern int (*msm_check_for_modem_crash)(void);
|
||||||
|
|
||||||
/* warning: notify() may be called before open returns */
|
/* warning: notify() may be called before open returns */
|
||||||
int smd_open(const char *name, smd_channel_t **ch, void *priv,
|
int smd_open(const char *name, smd_channel_t **ch, void *priv,
|
||||||
void (*notify)(void *priv, unsigned event));
|
void (*notify)(void *priv, unsigned event));
|
||||||
@@ -63,8 +65,7 @@ int smd_wait_until_readable(smd_channel_t *ch, int bytes);
|
|||||||
int smd_wait_until_writable(smd_channel_t *ch, int bytes);
|
int smd_wait_until_writable(smd_channel_t *ch, int bytes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
SMD_PORT_DS = 0,
|
SMD_PORT_DS = 0,
|
||||||
SMD_PORT_DIAG,
|
SMD_PORT_DIAG,
|
||||||
SMD_PORT_RPC_CALL,
|
SMD_PORT_RPC_CALL,
|
||||||
|
@@ -123,8 +123,6 @@ static void handle_modem_crash(void)
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int (*msm_check_for_modem_crash)(void);
|
|
||||||
|
|
||||||
uint32_t raw_smsm_get_state(enum smsm_state_item item)
|
uint32_t raw_smsm_get_state(enum smsm_state_item item)
|
||||||
{
|
{
|
||||||
return readl(smd_info.state + item * 4);
|
return readl(smd_info.state + item * 4);
|
||||||
@@ -904,9 +902,9 @@ static irqreturn_t smsm_irq_handler(int irq, void *data)
|
|||||||
|
|
||||||
if (msm_smd_debug_mask & MSM_SMSM_DEBUG)
|
if (msm_smd_debug_mask & MSM_SMSM_DEBUG)
|
||||||
pr_info("<SM %08x %08x>\n", apps, modm);
|
pr_info("<SM %08x %08x>\n", apps, modm);
|
||||||
if (modm & SMSM_RESET) {
|
if (modm & SMSM_RESET)
|
||||||
handle_modem_crash();
|
handle_modem_crash();
|
||||||
}
|
|
||||||
do_smd_probe();
|
do_smd_probe();
|
||||||
|
|
||||||
spin_unlock_irqrestore(&smem_lock, flags);
|
spin_unlock_irqrestore(&smem_lock, flags);
|
||||||
@@ -1056,8 +1054,6 @@ int smd_core_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void msm_init_last_radio_log(struct module *);
|
|
||||||
|
|
||||||
static int __init msm_smd_probe(struct platform_device *pdev)
|
static int __init msm_smd_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
pr_info("smd_init()\n");
|
pr_info("smd_init()\n");
|
||||||
|
@@ -20,24 +20,21 @@
|
|||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
|
|
||||||
struct smem_heap_info
|
struct smem_heap_info {
|
||||||
{
|
|
||||||
unsigned initialized;
|
unsigned initialized;
|
||||||
unsigned free_offset;
|
unsigned free_offset;
|
||||||
unsigned heap_remaining;
|
unsigned heap_remaining;
|
||||||
unsigned reserved;
|
unsigned reserved;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct smem_heap_entry
|
struct smem_heap_entry {
|
||||||
{
|
|
||||||
unsigned allocated;
|
unsigned allocated;
|
||||||
unsigned offset;
|
unsigned offset;
|
||||||
unsigned size;
|
unsigned size;
|
||||||
unsigned reserved;
|
unsigned reserved;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct smem_proc_comm
|
struct smem_proc_comm {
|
||||||
{
|
|
||||||
unsigned command;
|
unsigned command;
|
||||||
unsigned status;
|
unsigned status;
|
||||||
unsigned data1;
|
unsigned data1;
|
||||||
@@ -54,8 +51,7 @@ struct smem_proc_comm
|
|||||||
#define VERSION_APPS 8
|
#define VERSION_APPS 8
|
||||||
#define VERSION_MODEM 9
|
#define VERSION_MODEM 9
|
||||||
|
|
||||||
struct smem_shared
|
struct smem_shared {
|
||||||
{
|
|
||||||
struct smem_proc_comm proc_comm[4];
|
struct smem_proc_comm proc_comm[4];
|
||||||
unsigned version[32];
|
unsigned version[32];
|
||||||
struct smem_heap_info heap_info;
|
struct smem_heap_info heap_info;
|
||||||
@@ -66,8 +62,7 @@ struct smem_shared
|
|||||||
#define SMSM_V2_SIZE (sizeof(unsigned) * 4)
|
#define SMSM_V2_SIZE (sizeof(unsigned) * 4)
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_MSM_SCORPION
|
#ifndef CONFIG_ARCH_MSM_SCORPION
|
||||||
struct smsm_interrupt_info
|
struct smsm_interrupt_info {
|
||||||
{
|
|
||||||
uint32_t interrupt_mask;
|
uint32_t interrupt_mask;
|
||||||
uint32_t pending_interrupts;
|
uint32_t pending_interrupts;
|
||||||
uint32_t wakeup_reason;
|
uint32_t wakeup_reason;
|
||||||
@@ -156,8 +151,7 @@ void smsm_print_sleep_info(void);
|
|||||||
|
|
||||||
#define SMEM_NUM_SMD_CHANNELS 64
|
#define SMEM_NUM_SMD_CHANNELS 64
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
/* fixed items */
|
/* fixed items */
|
||||||
SMEM_PROC_COMM = 0,
|
SMEM_PROC_COMM = 0,
|
||||||
SMEM_HEAP_INFO,
|
SMEM_HEAP_INFO,
|
||||||
@@ -334,4 +328,6 @@ void *smem_find(unsigned id, unsigned size);
|
|||||||
void *smem_item(unsigned id, unsigned *size);
|
void *smem_item(unsigned id, unsigned *size);
|
||||||
uint32_t raw_smsm_get_state(enum smsm_state_item item);
|
uint32_t raw_smsm_get_state(enum smsm_state_item item);
|
||||||
|
|
||||||
|
extern void msm_init_last_radio_log(struct module *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user