From patchwork Sat Apr 2 14:37:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Nelson X-Patchwork-Id: 605422 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qcgpF1z9Vz9s5w for ; Sun, 3 Apr 2016 01:37:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7F0A7A75E5; Sat, 2 Apr 2016 16:37:43 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24CY9DRRe7ge; Sat, 2 Apr 2016 16:37:43 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 33456A75F2; Sat, 2 Apr 2016 16:37:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B493DA75E4 for ; Sat, 2 Apr 2016 16:37:24 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C_uqGmwM7OTb for ; Sat, 2 Apr 2016 16:37:24 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from fed1rmfepo201.cox.net (fed1rmfepo201.cox.net [68.230.241.146]) by theia.denx.de (Postfix) with ESMTP id 0D470A74A8 for ; Sat, 2 Apr 2016 16:37:19 +0200 (CEST) Received: from fed1rmimpo210.cox.net ([68.230.241.161]) by fed1rmfepo201.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20160402143718.YOYA5597.fed1rmfepo201.cox.net@fed1rmimpo210.cox.net> for ; Sat, 2 Apr 2016 10:37:18 -0400 Received: from localhost.localdomain ([98.165.107.234]) by fed1rmimpo210.cox.net with cox id dSdF1s00553Tyga01SdHqK; Sat, 02 Apr 2016 10:37:18 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020203.56FFD91E.005C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.1 cv=P+Oa/n0u c=1 sm=1 tr=0 a=mmedTQiI2PtWY+RDxZIZmw==:117 a=mmedTQiI2PtWY+RDxZIZmw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=9_1hYV8uAAAA:8 a=bdCT_fyumFAaFLHoKDMA:9 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (CRAM-MD5) smtp.auth=eric.a.nelson@cox.net From: Eric Nelson To: u-boot@lists.denx.de Date: Sat, 2 Apr 2016 07:37:14 -0700 Message-Id: <1459607834-5454-4-git-send-email-eric@nelint.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1459607834-5454-1-git-send-email-eric@nelint.com> References: <56FFD4D6.8050007@nelint.com> <1459607834-5454-1-git-send-email-eric@nelint.com> Cc: marex@denx.de, trini@konsulko.com, swarren@nvidia.com, ioan.nicu.ext@nsn.com, erik.tideman@faltcom.se, tor@excito.com, p.marczak@samsung.com, sr@denx.de, patrick.delaunay73@gmail.com Subject: [U-Boot] [PATCH 3/3] drivers: block: fix placement of parameters X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Eric Nelson --- include/blk.h | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/include/blk.h b/include/blk.h index 263a791..f624671 100644 --- a/include/blk.h +++ b/include/blk.h @@ -96,10 +96,9 @@ struct blk_desc { * * @return - '1' if block returned from cache, '0' otherwise. */ -int blkcache_read - (int iftype, int dev, - lbaint_t start, lbaint_t blkcnt, - unsigned long blksz, void *buffer); +int blkcache_read(int iftype, int dev, + lbaint_t start, lbaint_t blkcnt, + unsigned long blksz, void *buffer); /** * blkcache_fill() - make data read from a block device available @@ -113,10 +112,9 @@ int blkcache_read * @param buf - buffer containing data to cache * */ -void blkcache_fill - (int iftype, int dev, - lbaint_t start, lbaint_t blkcnt, - unsigned long blksz, void const *buffer); +void blkcache_fill(int iftype, int dev, + lbaint_t start, lbaint_t blkcnt, + unsigned long blksz, void const *buffer); /** * blkcache_invalidate() - discard the cache for a set of blocks @@ -125,8 +123,7 @@ void blkcache_fill * @param iftype - IF_TYPE_x for type of device * @param dev - device index of particular type */ -void blkcache_invalidate - (int iftype, int dev); +void blkcache_invalidate(int iftype, int dev); /** * blkcache_configure() - configure block cache @@ -156,21 +153,18 @@ void blkcache_stats(struct block_cache_stats *stats); #else -static inline int blkcache_read - (int iftype, int dev, - lbaint_t start, lbaint_t blkcnt, - unsigned long blksz, void *buffer) +static inline int blkcache_read(int iftype, int dev, + lbaint_t start, lbaint_t blkcnt, + unsigned long blksz, void *buffer) { return 0; } -static inline void blkcache_fill - (int iftype, int dev, - lbaint_t start, lbaint_t blkcnt, - unsigned long blksz, void const *buffer) {} +static inline void blkcache_fill(int iftype, int dev, + lbaint_t start, lbaint_t blkcnt, + unsigned long blksz, void const *buffer) {} -static inline void blkcache_invalidate - (int iftype, int dev) {} +static inline void blkcache_invalidate(int iftype, int dev) {} #endif