[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1285274468.25928.15.camel@Joe-Laptop>
Date: Thu, 23 Sep 2010 13:41:08 -0700
From: Joe Perches <joe@...ches.com>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: "'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
"'devel@...verdev.osuosl.org'" <devel@...verdev.osuosl.org>,
"'virtualization@...ts.osdl.org'" <virtualization@...ts.osdl.org>,
"'gregkh@...e.de'" <gregkh@...e.de>,
Hank Janssen <hjanssen@...rosoft.com>
Subject: Re: [PATCH 1/1] Rename camel case variables in channel.c
On Thu, 2010-09-23 at 20:24 +0000, Haiyang Zhang wrote:
> drivers/staging/hv/channel.c | 729 +++++++++++++++++++++---------------------
[]
> - struct hv_monitor_page *monitorPage;
> + struct hv_monitor_page *monitorpage;
Some of these renames would be better with a "_" for
the CamelCase conversions (ie: CamelCase -> camel_case).
perl regex: 's/\b([A-Z])([a-z]+)([A-Z])([a-z]+)\b/\L$1$2_\L$3$4/g'
For instance, I think this should be monitor_page;
> -void VmbusChannelGetDebugInfo(struct vmbus_channel *Channel,
> - struct vmbus_channel_debug_info *DebugInfo)
> +void VmbusChannelGetDebugInfo(struct vmbus_channel *channel,
> + struct vmbus_channel_debug_info *debuginfo)
perhaps debug_info
> {
> - struct hv_monitor_page *monitorPage;
> - u8 monitorGroup = (u8)Channel->OfferMsg.MonitorId / 32;
> - u8 monitorOffset = (u8)Channel->OfferMsg.MonitorId % 32;
> + struct hv_monitor_page *monitorpage;
> + u8 monitorGroup = (u8)channel->OfferMsg.MonitorId / 32;
> + u8 monitorOffset = (u8)channel->OfferMsg.MonitorId % 32;
Why not convert these to monitor_(group|offset)?
etc...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists