From: Pavel Machek <pavel@ucw.cz>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org, dima@android.com
Subject: Re: [PATCH 1/5] arm: msm: smd: checkpatch clean up of smd/proc_comm
Date: Tue, 20 Apr 2010 07:18:36 +0200 [thread overview]
Message-ID: <20100420051836.GD2075@ucw.cz> (raw)
In-Reply-To: <1271700189-8376-1-git-send-email-dwalker@codeaurora.org>
On Mon 2010-04-19 11:03:05, Daniel Walker wrote:
> This cleans up coding style. There are no run time changes.
>
> Change-Id: I160b827ba6f218f1080a3804694401bf6d69adf5
> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
ACK.
> ---
> arch/arm/mach-msm/include/mach/msm_smd.h | 5 +++--
> arch/arm/mach-msm/proc_comm.h | 4 ++--
> arch/arm/mach-msm/smd.c | 8 ++------
> arch/arm/mach-msm/smd_private.h | 24 ++++++++++--------------
> 4 files changed, 17 insertions(+), 24 deletions(-)
>
> diff --git a/arch/arm/mach-msm/include/mach/msm_smd.h b/arch/arm/mach-msm/include/mach/msm_smd.h
> index 2e56b82..7ed2939 100644
> --- a/arch/arm/mach-msm/include/mach/msm_smd.h
> +++ b/arch/arm/mach-msm/include/mach/msm_smd.h
> @@ -19,6 +19,8 @@
>
> typedef struct smd_channel smd_channel_t;
>
> +extern int (*msm_check_for_modem_crash)(void);
> +
> /* warning: notify() may be called before open returns */
> int smd_open(const char *name, smd_channel_t **ch, void *priv,
> 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);
> #endif
>
> -typedef enum
> -{
> +typedef enum {
> SMD_PORT_DS = 0,
> SMD_PORT_DIAG,
> SMD_PORT_RPC_CALL,
> diff --git a/arch/arm/mach-msm/proc_comm.h b/arch/arm/mach-msm/proc_comm.h
> index 2350765..0f5cdd3 100644
> --- a/arch/arm/mach-msm/proc_comm.h
> +++ b/arch/arm/mach-msm/proc_comm.h
> @@ -217,8 +217,8 @@ enum vreg_pdown_id {
> };
>
> enum {
> - PCOM_CLKRGM_APPS_RESET_USB_PHY = 34,
> - PCOM_CLKRGM_APPS_RESET_USBH = 37,
> + PCOM_CLKRGM_APPS_RESET_USB_PHY = 34,
> + PCOM_CLKRGM_APPS_RESET_USBH = 37,
> };
>
> /* gpio info for PCOM_RPC_GPIO_TLMM_CONFIG_EX */
> diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c
> index 2b40f2d..42b59c9 100644
> --- a/arch/arm/mach-msm/smd.c
> +++ b/arch/arm/mach-msm/smd.c
> @@ -118,8 +118,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)
> {
> return readl(smd_info.state + item * 4);
> @@ -899,9 +897,9 @@ static irqreturn_t smsm_irq_handler(int irq, void *data)
>
> if (msm_smd_debug_mask & MSM_SMSM_DEBUG)
> pr_info("<SM %08x %08x>\n", apps, modm);
> - if (modm & SMSM_RESET) {
> + if (modm & SMSM_RESET)
> handle_modem_crash();
> - }
> +
> do_smd_probe();
>
> spin_unlock_irqrestore(&smem_lock, flags);
> @@ -1051,8 +1049,6 @@ int smd_core_init(void)
> return 0;
> }
>
> -extern void msm_init_last_radio_log(struct module *);
> -
> static int __init msm_smd_probe(struct platform_device *pdev)
> {
> pr_info("smd_init()\n");
> diff --git a/arch/arm/mach-msm/smd_private.h b/arch/arm/mach-msm/smd_private.h
> index 2da758e..33a33f1 100644
> --- a/arch/arm/mach-msm/smd_private.h
> +++ b/arch/arm/mach-msm/smd_private.h
> @@ -20,24 +20,21 @@
> #include <linux/spinlock.h>
> #include <linux/list.h>
>
> -struct smem_heap_info
> -{
> +struct smem_heap_info {
> unsigned initialized;
> unsigned free_offset;
> unsigned heap_remaining;
> unsigned reserved;
> };
>
> -struct smem_heap_entry
> -{
> +struct smem_heap_entry {
> unsigned allocated;
> unsigned offset;
> unsigned size;
> unsigned reserved;
> };
>
> -struct smem_proc_comm
> -{
> +struct smem_proc_comm {
> unsigned command;
> unsigned status;
> unsigned data1;
> @@ -54,8 +51,7 @@ struct smem_proc_comm
> #define VERSION_APPS 8
> #define VERSION_MODEM 9
>
> -struct smem_shared
> -{
> +struct smem_shared {
> struct smem_proc_comm proc_comm[4];
> unsigned version[32];
> struct smem_heap_info heap_info;
> @@ -66,8 +62,7 @@ struct smem_shared
> #define SMSM_V2_SIZE (sizeof(unsigned) * 4)
>
> #ifndef CONFIG_ARCH_MSM_SCORPION
> -struct smsm_interrupt_info
> -{
> +struct smsm_interrupt_info {
> uint32_t interrupt_mask;
> uint32_t pending_interrupts;
> uint32_t wakeup_reason;
> @@ -156,8 +151,7 @@ void smsm_print_sleep_info(void);
>
> #define SMEM_NUM_SMD_CHANNELS 64
>
> -typedef enum
> -{
> +typedef enum {
> /* fixed items */
> SMEM_PROC_COMM = 0,
> SMEM_HEAP_INFO,
> @@ -232,7 +226,7 @@ typedef enum
> SMEM_SMEM_LOG_POWER_WRAP,
> SMEM_SMEM_LOG_POWER_EVENTS,
> SMEM_ERR_CRASH_LOG,
> - SMEM_ERR_F3_TRACE_LOG,
> + SMEM_ERR_F3_TRACE_LOG,
> SMEM_NUM_ITEMS,
> } smem_mem_type;
>
> @@ -281,7 +275,7 @@ struct smd_shared_v1 {
> struct smd_shared_v2 {
> struct smd_half_channel ch0;
> struct smd_half_channel ch1;
> -};
> +};
>
> struct smd_channel {
> volatile struct smd_half_channel *send;
> @@ -334,4 +328,6 @@ void *smem_find(unsigned id, unsigned size);
> void *smem_item(unsigned id, unsigned *size);
> uint32_t raw_smsm_get_state(enum smsm_state_item item);
>
> +extern void msm_init_last_radio_log(struct module *);
> +
> #endif
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2010-04-20 5:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 18:03 [PATCH 1/5] arm: msm: smd: checkpatch clean up of smd/proc_comm Daniel Walker
2010-04-20 5:18 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100420051836.GD2075@ucw.cz \
--to=pavel@ucw.cz \
--cc=dima@android.com \
--cc=dwalker@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).