From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vs166246.vserver.de (static-ip-62-75-166-246.inaddr.intergenia.de [62.75.166.246]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 4604ADDE30 for ; Thu, 26 Apr 2007 19:45:32 +1000 (EST) From: Michael Buesch To: Arnd Bergmann Subject: Re: [PATCH] [2.6.22] pasemi: hardware rng driver Date: Thu, 26 Apr 2007 11:23:57 +0200 References: <20070425204512.GB19781@lixom.net> <200704260138.32220.arnd@arndb.de> In-Reply-To: <200704260138.32220.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200704261123.58032.mb@bu3sch.de> Cc: Olof Johansson , linuxppc-dev@ozlabs.org, egor@pasemi.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 26 April 2007 01:38:31 Arnd Bergmann wrote: > On Wednesday 25 April 2007, Olof Johansson wrote: > > > +static void __iomem *rng_regs; > > + > > +static int pasemi_rng_data_present(struct hwrng *rng) > > +{ > > + return (in_le32(rng_regs + SDCRNG_CTL_REG) > > + & SDCRNG_CTL_FVLD_M) ? 1 : 0; > > +} > > It would be nicer to get rid of the global rng_regs variable by sticking > it into rng->priv. Yeah, I think that would be better. Saves one global variable. -- Greetings Michael.