From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: "Bjørn Mork" <bjorn@mork.no>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH 1/6] siano: get rid of CammelCase from smscoreapi.h
Date: Thu, 21 Mar 2013 10:20:16 -0300 [thread overview]
Message-ID: <20130321102016.07c8e31e@redhat.com> (raw)
In-Reply-To: <87hak4j3ue.fsf@nemi.mork.no>
Em Thu, 21 Mar 2013 14:10:33 +0100
Bjørn Mork <bjorn@mork.no> escreveu:
> Mauro Carvalho Chehab <mchehab@redhat.com> writes:
>
> > It is almost impossible to see a compliant with checkpatch.pl
> > on those Siano drivers, as there are simply too much violations
> > on it. So, now that a big change was done, the better is to
> > cleanup the checkpatch compliants.
> >
> > Let's first replace all CammelCase symbols found at smscoreapi.h
> > using camel_case namespace. That removed 144 checkpatch.pl
> > compliants on this file. Of course, the other files need to be
> > fixed accordingly.
> [..]
> > @@ -840,14 +840,14 @@ int smscore_configure_board(struct smscore_device_t *coredev)
> > }
> >
> > if (board->mtu) {
> > - struct SmsMsgData_ST MtuMsg;
> > + struct sms_msg_data MtuMsg;
> > sms_debug("set max transmit unit %d", board->mtu);
> >
> > - MtuMsg.xMsgHeader.msgSrcId = 0;
> > - MtuMsg.xMsgHeader.msgDstId = HIF_TASK;
> > - MtuMsg.xMsgHeader.msgFlags = 0;
> > - MtuMsg.xMsgHeader.msgType = MSG_SMS_SET_MAX_TX_MSG_LEN_REQ;
> > - MtuMsg.xMsgHeader.msgLength = sizeof(MtuMsg);
> > + MtuMsg.x_msg_header.msg_src_id = 0;
> > + MtuMsg.x_msg_header.msg_dst_id = HIF_TASK;
> > + MtuMsg.x_msg_header.msg_flags = 0;
> > + MtuMsg.x_msg_header.msg_type = MSG_SMS_SET_MAX_TX_MSG_LEN_REQ;
> > + MtuMsg.x_msg_header.msg_length = sizeof(MtuMsg);
> > MtuMsg.msgData[0] = board->mtu;
> >
> > coredev->sendrequest_handler(coredev->context, &MtuMsg,
>
>
>
> etc. This didn't help one bit, did it? There are exacly the same
> number of CamelCased lines here as before your patch. Why is that?
I did this change in parts. This first patch changes only the symbols at
the structures defined in smscoreapi.h. Latter patches in this series fix
the rest.
I decided to do this way as not all CamelCase issues can be solved: there are
lots of CamelCase on Kernel's USB API (probably to match the USB standard?).
So, I can't simply blind run my CamelCase fix script when fixing the
remaining issues.
--
Cheers,
Mauro
prev parent reply other threads:[~2013-03-21 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 13:02 [PATCH 1/6] siano: get rid of CammelCase from smscoreapi.h Mauro Carvalho Chehab
2013-03-21 13:02 ` [PATCH 2/6] siano: convert structure names to lowercase Mauro Carvalho Chehab
2013-03-21 13:02 ` [PATCH 3/6] [siano] fix checkpatch.pl compliants on smscoreapi.h Mauro Carvalho Chehab
2013-03-21 13:02 ` [PATCH 4/6] siano: remove the remaining CamelCase compliants Mauro Carvalho Chehab
2013-03-21 13:18 ` Bjørn Mork
2013-03-21 13:24 ` Mauro Carvalho Chehab
2013-03-21 13:02 ` [PATCH 5/6] siano: Fix the remaining checkpatch.pl compliants Mauro Carvalho Chehab
2013-03-21 13:02 ` [PATCH 6/6] siano: make some functions static Mauro Carvalho Chehab
2013-03-21 13:10 ` [PATCH 1/6] siano: get rid of CammelCase from smscoreapi.h Bjørn Mork
2013-03-21 13:20 ` Mauro Carvalho Chehab [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=20130321102016.07c8e31e@redhat.com \
--to=mchehab@redhat.com \
--cc=bjorn@mork.no \
--cc=linux-media@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.