From: Cyrill Gorcunov <gorcunov@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Stephen Hemminge <shemminger@linux-foundation.org>
Subject: [PATCH] Sky Cpu: use C99 style for struct init
Date: Thu, 5 Jul 2007 21:59:10 +0400 [thread overview]
Message-ID: <20070705175910.GG7180@cvg> (raw)
This patch change structure item init
format to C99.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
The patch is over my prev patch named:
[PATCH 1/4] Sky Cpu and Nexus: code style improvement
drivers/misc/hdpuftrs/hdpu_cpustate.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c
index 51e4963..cc33f24 100644
--- a/drivers/misc/hdpuftrs/hdpu_cpustate.c
+++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c
@@ -171,21 +171,21 @@ static struct platform_driver hdpu_cpustate_driver = {
* The various file operations we support.
*/
static const struct file_operations cpustate_fops = {
- owner: THIS_MODULE,
- open: cpustate_open,
- release: cpustate_release,
- read: cpustate_read,
- write: cpustate_write,
- fasync: NULL,
- poll: NULL,
- ioctl: NULL,
- llseek: no_llseek,
+ .owner = THIS_MODULE,
+ .open = cpustate_open,
+ .release = cpustate_release,
+ .read = cpustate_read,
+ .write = cpustate_write,
+ .fasync = NULL,
+ .poll = NULL,
+ .ioctl = NULL,
+ .llseek = no_llseek,
};
static struct miscdevice cpustate_dev = {
- MISC_DYNAMIC_MINOR,
- "sky_cpustate",
- &cpustate_fops,
+ .minor = MISC_DYNAMIC_MINOR,
+ .name = "sky_cpustate",
+ .fops = &cpustate_fops,
};
static int hdpu_cpustate_probe(struct platform_device *pdev)
next reply other threads:[~2007-07-05 17:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 17:59 Cyrill Gorcunov [this message]
2007-07-06 9:21 ` [PATCH] Sky Cpu: use C99 style for struct init Vincent Hanquez
2007-07-06 14:11 ` Cyrill Gorcunov
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=20070705175910.GG7180@cvg \
--to=gorcunov@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shemminger@linux-foundation.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