From patchwork Fri Nov 9 15:36:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 198109 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1134B2C0092 for ; Sat, 10 Nov 2012 02:38:25 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWqeF-0007uT-VL; Fri, 09 Nov 2012 15:37:36 +0000 Received: from mail-gg0-f177.google.com ([209.85.161.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TWqeC-0007te-FT for linux-mtd@lists.infradead.org; Fri, 09 Nov 2012 15:37:33 +0000 Received: by mail-gg0-f177.google.com with SMTP id h1so792746gge.36 for ; Fri, 09 Nov 2012 07:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=KBt+USGDu19UjvO2yMpHClNIPdRJA/x4CKKsQlS2vd8=; b=t4FHA5juSCitXa3KpWNQkArd6LWA2cjmTgLYYWy4Y1+MhwCHOd4PgHYek4bpj0Admz uKZYLkyZxk99lwPCMS/tQLLxjAQXQ2aheu6+uok2h2fyEhRHQJ8tNyK9d4SBI/Is5VDh 7CyiQhcv7xX0DK+l7Yr03aeflw0engSkdTmgxV/REynIBlEg/+V3m3VhvSqIUNrgnXls MZBhTS80gZgAYFddtiVQfDus+08GvJ4L/4UWQmdP7IDrPG2xU9ZkngwxmkWNn3U6Lcsz 4/NtA9GUCY4ahU68Gy3ViuwREYmWsSYg5hfj+FMn/RIbtBPTFJM6fLmFMGRuHn5B2j8W /tZA== Received: by 10.236.76.132 with SMTP id b4mr11863411yhe.106.1352475450160; Fri, 09 Nov 2012 07:37:30 -0800 (PST) Received: from localhost.cpe.express.com.ar (71.222.3.200.ros.express.com.ar. [200.3.222.71]) by mx.google.com with ESMTPS id a7sm30151324yhe.14.2012.11.09.07.37.26 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 07:37:29 -0800 (PST) From: Ezequiel Garcia To: Subject: [PATCH] mtd_blkdev: Use a different name for block_device_operations variable Date: Fri, 9 Nov 2012 12:36:35 -0300 Message-Id: <1352475395-11917-1-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.8.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121109_103732_763876_7DF1E944 X-CRM114-Status: GOOD ( 12.78 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (elezegarcia[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Ezequiel Garcia , David Woodhouse , linux-kernel@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org struct mtd_blktrans_ops is a type, and mtd_blktrans_ops is a variable. To improve code clarity it's better to not use the same names, so we just change the latter. Cc: David Woodhouse Signed-off-by: Ezequiel Garcia --- drivers/mtd/mtd_blkdevs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index f1f0671..26ef2a7 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c @@ -325,7 +325,7 @@ unlock: return ret; } -static const struct block_device_operations mtd_blktrans_ops = { +static const struct block_device_operations mtd_block_ops = { .owner = THIS_MODULE, .open = blktrans_open, .release = blktrans_release, @@ -401,7 +401,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) gd->private_data = new; gd->major = tr->major; gd->first_minor = (new->devnum) << tr->part_bits; - gd->fops = &mtd_blktrans_ops; + gd->fops = &mtd_block_ops; if (tr->part_bits) if (new->devnum < 26)