From: Artem Bityutskiy <dedekind1@gmail.com>
To: Jamie Iles <jamie@jamieiles.com>
Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH 02/62] mtd: introduce mtd_device_(un)register()
Date: Mon, 23 May 2011 18:17:03 +0300 [thread overview]
Message-ID: <1306163824.2785.39.camel@localhost> (raw)
In-Reply-To: <1306142623-24952-3-git-send-email-jamie@jamieiles.com>
On Mon, 2011-05-23 at 10:22 +0100, Jamie Iles wrote:
> +/**
> + * mtd_device_register() - register an MTD device
> + *
> + * Register an MTD device with the system and optionally, a number of
> + * partitions. If nr_parts is 0 then the whole device is registered,
> + * otherwise only the partitions are registered. To register both the full
> + * device *and* the partitions, call mtd_device_register() twice, once with
> + * nr_parts == 0 and once equal to the number of partitions.
> + *
> + * @master The MTD device to register.
> + * @parts The partitions to register - only valid if nr_parts > 0.
> + * @nr_parts The number of partitions in parts. If zero then the full
> + * MTD device is registered.
> + */
> +extern int mtd_device_register(struct mtd_info *master,
> + const struct mtd_partition *parts,
> + int nr_parts);
It does make sense to describe the function in the "interface" file, but
in the kernel we add the kernel-doc comments above the function
implementation, this is just the established practice. You may find some
examples where the description is in the .h file, but this is rare (yes,
the kernel is fare from being consistent).
So please, move the descriptive comments to mtdcore.c.
Also, please, check the kernel-doc comments buy feeding your file to
scripts kernel-doc and make sure it does not generate errors or
warnings.
Please, do not re-send all patches, just this one, if possible. Note, if
something requires a minor conflict resolution - I can do this.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-05-23 15:21 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 9:22 [PATCH 00/62] Remove CONFIG_MTD_PARTITIONS Jamie Iles
2011-05-23 9:22 ` [PATCH 01/62] mtd: always build partitioning support Jamie Iles
2011-05-23 15:15 ` Artem Bityutskiy
2011-05-23 9:22 ` [PATCH 02/62] mtd: introduce mtd_device_(un)register() Jamie Iles
2011-05-23 15:17 ` Artem Bityutskiy [this message]
2011-05-23 16:15 ` [PATCHv2] " Jamie Iles
2011-05-23 22:55 ` [PATCH 02/62] " Mike Frysinger
2011-05-23 23:06 ` Jamie Iles
2011-05-23 9:22 ` [PATCH 03/62] mtd: provide of_mtd_parse_partitions for !CONFIG_MTD_OF_PARTS Jamie Iles
2011-05-23 9:22 ` [PATCH 04/62] mtd/physmap: convert to mtd_device_register() Jamie Iles
2011-05-23 9:22 ` [PATCH 05/62] mtd/nand: " Jamie Iles
2011-05-23 9:22 ` [PATCH 06/62] mtd/plat_nand: " Jamie Iles
2011-05-23 9:22 ` [PATCH 07/62] arm/mtd/gemini: " Jamie Iles
2011-05-23 9:22 ` [PATCH 08/62] mtd/ixp: " Jamie Iles
2011-05-23 9:22 ` [PATCH 09/62] mtd/pxa: " Jamie Iles
2011-05-23 9:22 ` [PATCH 10/62] mtd/s3c2410: remove CONFIG_MTD_PARTITIONS test Jamie Iles
2011-05-23 9:22 ` [PATCH 11/62] mtd/bfin: convert to mtd_device_register() Jamie Iles
2011-05-23 9:22 ` [PATCH 12/62] mtd/cris: " Jamie Iles
2011-05-23 9:22 ` [PATCH 13/62] mtd/octeon: " Jamie Iles
2011-05-23 9:22 ` [PATCH 14/62] mips/tx99: remove CONFIG_MTD_PARTITIONS check Jamie Iles
2011-05-23 9:22 ` [PATCH 15/62] mtd/onenand: convert to mtd_device_register() Jamie Iles
2011-05-23 9:22 ` [PATCH 16/62] mtd/m25p80: " Jamie Iles
2011-05-23 9:22 ` [PATCH 17/62] mtd/dataflash: " Jamie Iles
2011-05-23 9:22 ` [PATCH 18/62] mtd/sst25l: " Jamie Iles
2011-05-23 9:23 ` [PATCH 19/62] mtd/dc21285: " Jamie Iles
2011-05-23 9:23 ` [PATCH 20/62] mtd/edb7312: " Jamie Iles
2011-05-23 9:23 ` [PATCH 21/62] mtd/gpio-addr-flash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 22/62] mtd/h720x-flash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 23/62] mtd/impa7: " Jamie Iles
2011-05-23 9:23 ` [PATCH 24/62] mtd/intel_vr_nor: " Jamie Iles
2011-05-23 9:23 ` [PATCH 25/62] mtd/latch-addr-flash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 26/62] mtd/plat-ram: " Jamie Iles
2011-05-23 9:23 ` [PATCH 27/62] mtd/rbtx4939-flash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 28/62] mtd/sa1100-flash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 29/62] mtd/scx200_docflash: " Jamie Iles
2011-05-23 9:23 ` [PATCH 30/62] mtd/tqm8xll: " Jamie Iles
2011-05-23 9:23 ` [PATCH 31/62] mtd/uclinux: " Jamie Iles
2011-05-23 9:23 ` [PATCH 32/62] mtd/atmel_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 33/62] mtd/bcm_umi_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 34/62] mtd/bf5xx_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 35/62] mtd/cafe_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 36/62] mtd/cs553x_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 37/62] mtd/davinci_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 38/62] mtd/diskonchip: " Jamie Iles
2011-05-23 9:23 ` [PATCH 39/62] mtd/edb7312 nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 40/62] mtd/fsl_elbc_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 41/62] mtd/fsl_upm: " Jamie Iles
2011-05-23 9:23 ` [PATCH 42/62] mtd/fsmc_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 43/62] mtd/h1910: " Jamie Iles
2011-05-23 9:23 ` [PATCH 44/62] mtd/jz4740_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 45/62] mtd/mpc5121_nfc: " Jamie Iles
2011-05-23 9:23 ` [PATCH 46/62] mtd/mxc_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 47/62] mtd/ndfc: " Jamie Iles
2011-05-23 9:23 ` [PATCH 48/62] mtd/nomadik_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 49/62] mtd/omap2: " Jamie Iles
2011-05-23 9:23 ` [PATCH 50/62] mtd/orion_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 51/62] mtd/ppchameleonevb: " Jamie Iles
2011-05-23 9:23 ` [PATCH 52/62] mtd/s3c2410 nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 53/62] mtd/sharpsl: " Jamie Iles
2011-05-23 9:23 ` [PATCH 54/62] mtd/socrates_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 55/62] mtd/tmio_nand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 56/62] mtd/txx9ndfmc: " Jamie Iles
2011-05-23 9:23 ` [PATCH 57/62] mtd/omap2 onenand: " Jamie Iles
2011-05-23 9:23 ` [PATCH 58/62] mtd/samsung " Jamie Iles
2011-05-23 9:23 ` [PATCH 59/62] mtd: convert remaining users " Jamie Iles
2011-05-23 9:23 ` [PATCH 60/62] mtd/lantiq: convert " Jamie Iles
2011-05-27 9:27 ` John Crispin
2011-05-23 9:23 ` [PATCH 61/62] mtd: remove add_mtd_partitions, add_mtd_device and friends Jamie Iles
2011-05-23 9:23 ` [PATCH 62/62] mtd: kill CONFIG_MTD_PARTITIONS Jamie Iles
2011-05-24 5:43 ` [PATCH 00/62] Remove CONFIG_MTD_PARTITIONS Artem Bityutskiy
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=1306163824.2785.39.camel@localhost \
--to=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=jamie@jamieiles.com \
--cc=linux-mtd@lists.infradead.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).