Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934823AbbKTHpu (ORCPT ); Fri, 20 Nov 2015 02:45:50 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:34219 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758949AbbKTHpZ (ORCPT ); Fri, 20 Nov 2015 02:45:25 -0500 From: LABBE Corentin To: computersforpeace@gmail.com, dwmw2@infradead.org, josh.wu@atmel.com Cc: LABBE Corentin , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH v2 1/2] mtd: nand: atmel_nand: constify atmel_nand_caps structures Date: Fri, 20 Nov 2015 08:45:16 +0100 Message-Id: <1448005517-26004-2-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.4.10 In-Reply-To: <1448005517-26004-1-git-send-email-clabbe.montjoie@gmail.com> References: <1448005517-26004-1-git-send-email-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1254 Lines: 42 All atmel_nand_caps are never modified, consitify them. Signed-off-by: LABBE Corentin --- drivers/mtd/nand/atmel_nand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 583cdd9..475c938 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -128,7 +128,7 @@ struct atmel_nand_host { struct atmel_nfc *nfc; - struct atmel_nand_caps *caps; + const struct atmel_nand_caps *caps; bool has_pmecc; u8 pmecc_corr_cap; u16 pmecc_sector_size; @@ -2304,11 +2304,11 @@ static int atmel_nand_remove(struct platform_device *pdev) return 0; } -static struct atmel_nand_caps at91rm9200_caps = { +static const struct atmel_nand_caps at91rm9200_caps = { .pmecc_correct_erase_page = false, }; -static struct atmel_nand_caps sama5d4_caps = { +static const struct atmel_nand_caps sama5d4_caps = { .pmecc_correct_erase_page = true, }; -- 2.4.10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/