[PATCH] crypto: correct obvious misspelling "cypto-controller"
Signed-off-by: Robert P. J. Day --- diff --git a/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt b/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt index 5e2ba385b8c9..53e39d5f94e7 100644 --- a/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt +++ b/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt @@ -16,7 +16,7 @@ Required properties: Examples: - crypto: cypto-controller@ff8a { + crypto: crypto-controller@ff8a { compatible = "rockchip,rk3288-crypto"; reg = <0xff8a 0x4000>; interrupts = ; diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index d7e49d29ace5..dcfdb2c0d206 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -942,7 +942,7 @@ status = "disabled"; }; - crypto: cypto-controller@ff8a { + crypto: crypto-controller@ff8a { compatible = "rockchip,rk3288-crypto"; reg = <0x0 0xff8a 0x0 0x4000>; interrupts = ; rday -- ================ Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday
Re: [PATCH] CRYPTO: Simplify code using ARRAY_SIZE() macro.
On Mon, 26 May 2008, Herbert Xu wrote: > On Sun, May 25, 2008 at 11:32:45AM +0000, Robert P. J. Day wrote: > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > > > --- > > > > diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c > > index 81f3f95..c4c018d 100644 > > --- a/drivers/crypto/hifn_795x.c > > +++ b/drivers/crypto/hifn_795x.c > > @@ -894,7 +894,7 @@ static int hifn_enable_crypto(struct hifn_device *dev) > > char *offtbl = NULL; > > int i; > > > > - for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) { > > + for (i = 0; i < ARRAY_SIZE(pci2id)); i++) { > > You've got an extra parenthesis here. You should be building the > patches that you send, no matter how trivial they might look! > > I've fixed it for you this time. yes, my apologies. thanks. rday -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry: Have classroom, will lecture. http://crashcourse.ca Waterloo, Ontario, CANADA -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] CRYPTO: Simplify code using ARRAY_SIZE() macro.
Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index 81f3f95..c4c018d 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -894,7 +894,7 @@ static int hifn_enable_crypto(struct hifn_device *dev) char *offtbl = NULL; int i; - for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) { + for (i = 0; i < ARRAY_SIZE(pci2id)); i++) { if (pci2id[i].pci_vendor == dev->pdev->vendor && pci2id[i].pci_prod == dev->pdev->device) { offtbl = pci2id[i].card_id; ================ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry: Have classroom, will lecture. http://crashcourse.ca Waterloo, Ontario, CANADA -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html