From: Clive Davies <cdavies@altera.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: add_mtd_partition question
Date: Wed, 10 Jul 2002 08:23:58 +0100 [thread overview]
Message-ID: <200207100723.g6A7Nwf06288@localhost.localdomain> (raw)
In-Reply-To: <15331.1026217135@redhat.com>
I think this is probably a more correct fix. If you could let me know if it
looks ok, if so then I'll commit it.
Index: mtdpart.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdpart.c,v
retrieving revision 1.27
diff -r1.27 mtdpart.c
72a73,88
> static int part_read_user_prot_reg (struct mtd_info *mtd, loff_t from,
size_t len,
> size_t *retlen, u_char *buf)
> {
> struct mtd_part *part = PART(mtd);
> return part->master->read_user_prot_reg (part->master, from,
> len, retlen, buf);
> }
>
> static int part_read_fact_prot_reg (struct mtd_info *mtd, loff_t from,
size_t len,
> size_t *retlen, u_char *buf)
> {
> struct mtd_part *part = PART(mtd);
> return part->master->read_user_prot_reg (part->master, from,
> len, retlen, buf);
> }
>
100a117,124
> static int part_write_user_prot_reg (struct mtd_info *mtd, loff_t from,
size_t len,
> size_t *retlen, u_char *buf)
> {
> struct mtd_part *part = PART(mtd);
> return part->master->write_user_prot_reg (part->master, from,
> len, retlen, buf);
> }
>
229,231d252
< slave->mtd.read_user_prot_reg = master->read_user_prot_reg;
< slave->mtd.read_fact_prot_reg = master->read_fact_prot_reg;
< slave->mtd.write_user_prot_reg = master->write_user_prot_reg;
243a265,270
> if(master->read_user_prot_reg)
> slave->mtd.read_user_prot_reg =
part_read_user_prot_reg;
> if(master->read_fact_prot_reg)
> slave->mtd.read_fact_prot_reg =
part_read_fact_prot_reg;
> if(master->write_user_prot_reg)
> slave->mtd.write_user_prot_reg =
part_write_user_prot_reg;
next prev parent reply other threads:[~2002-07-10 7:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-09 10:32 add_mtd_partition question Clive Davies
2002-07-09 12:18 ` David Woodhouse
2002-07-09 13:40 ` Clive Davies
2002-07-10 7:23 ` Clive Davies [this message]
2002-07-10 8:12 ` David Woodhouse
2002-07-10 8:22 ` Clive Davies
2002-07-10 8:24 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2002-07-05 7:58 Clive Davies
2002-07-05 7:32 Clive Davies
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=200207100723.g6A7Nwf06288@localhost.localdomain \
--to=cdavies@altera.com \
--cc=dwmw2@infradead.org \
--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