Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3970000ybl; Mon, 9 Dec 2019 03:15:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyqiN9OLcJ12Sm7vk+gWyDCehb5/fRN60FjaTHIioX/oE7k7EkVN2ginEPTUpjESW/V5l3d X-Received: by 2002:a05:6808:312:: with SMTP id i18mr24343300oie.44.1575890101221; Mon, 09 Dec 2019 03:15:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575890101; cv=pass; d=google.com; s=arc-20160816; b=sY8/l6xP8ivRuRtRRtj4cFPxgt7Jj05iSzKz1XEn63QR0BSC3f50jLjyco/BZtRiQ8 +oZakp/PHqF6OlrPDphmMfWeeaMzRCnAbQM0/KUCuYA7R2i9vHtdlMbFfZxBsVb4CWbv bk4LbwwpKiiqBShUmb5e6DNUkDUkKtcSuMrdZ/EzkvKJTQ6GpiCbednjZSPeQkr+3m7g KKzMS1VRtoi481ks+PkMdmcIB3xgtO9MfMwYTWBcy94h99byRiMZmacjQ2JUCH2cuK2Z 4kdOf5zSLBDpovXGTw0GKZJmy+30DlURtGc11PkJIi22qzTbxDDHjGNZqmGBpVNIruQq 3VnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :ironport-sdr; bh=G6I/whi14GuBMWM1UcH8n1xjUzpiDqD+1iO9u21AJvw=; b=ZhCw0II3oAW9V5dHTMNMNM7+4BPpDcgSycBLxsSfJDPrC0cdwO5vf4MT9wa2ppvXP1 2U1pghJMIJA0Ffyr/cS5jzTU/EXWpbYjhrBvbS26ivd1iHsaM8wUwHrpWE780g2NHwCM H6PgKc2U+njdeunj0VXAJkQjGsSa75dZmRzKbf/0dVR1xjeWPgwC13u79ROCNtpT6Xal /Ha0vdnu9KXDOscQ9dWV3ireA0tuEuYPSFNHXOaC3XkDgJ0ljqXh4ejkPhUPaKMEBvnK qtgyZy5o512LMh1RvOPuLVQnRhWYHr9Wh1Qohsu6j8QmrT/SVrIoFWpgqNtjbKaFJFLK gupw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=ZK8AnW3F; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si11621761otb.231.2019.12.09.03.14.48; Mon, 09 Dec 2019 03:15:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=ZK8AnW3F; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727425AbfLIKUK (ORCPT + 99 others); Mon, 9 Dec 2019 05:20:10 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:60747 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbfLIKUI (ORCPT ); Mon, 9 Dec 2019 05:20:08 -0500 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Eugen.Hristev@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Eugen.Hristev@microchip.com"; x-sender="Eugen.Hristev@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Eugen.Hristev@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; spf=Pass smtp.mailfrom=Eugen.Hristev@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dkim=pass (signature verified) header.i=@microchiptechnology.onmicrosoft.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: RKxU376FLUSKcuqbPLipdNyCibv+lxeHs5PmDMLcdvXSyRIEc7llVZfgYOo+XwWWb5Oplmxd4T T/CP3KZAgY+/EEynQaZrAs44aCc0Xwb4SH2AoVWlcZX2y5C5LydZUWs8yyf7mj8XHbey+DlsnK eniDFDaU6HWMNaoapqc0xPTH376mL2qtnGf6JXgY72f4+DAP3zghxGoDUqsvua3v9NUbvc+77s amDKknvkJtZC5BfHKgZmPy26//Pq2If8/YTiELP2vdft3piGx/2qgSfkAhk1/UkNdsNlteksKH Ots= X-IronPort-AV: E=Sophos;i="5.69,294,1571727600"; d="scan'208";a="61051880" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Dec 2019 03:20:07 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 9 Dec 2019 03:20:06 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 9 Dec 2019 03:20:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E7dUMRahl0KeLv7vWcHR9FyyoTXxA3abjsHm4Qkf9YNezUntm/1Rih/52MvBh4CVGCqgVF5O4BJRGgksQt779bYUg+mUdKqz2up8u4+I1wgOC1YJxgui4Idpyj2ZdHBirwmZ2ia9fvW/AT9wk+nabeJj838VCrd4cLMm4r+QQCawRnfum1MqXd6XzzVVox4N57v2xJeqVV1D51efcm/gHq8L5nhTL1Lp55Yoa0bY9DNzWeug6vbK6Q9Pgl98K3gyFEnguhWnkQ2lVTVb1jti5wvIQoftPXlL2oiXjDOfvhwAPlaem0b5Boga/v0JyoFawi+50lLJePgrMLpT28hhdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G6I/whi14GuBMWM1UcH8n1xjUzpiDqD+1iO9u21AJvw=; b=k6QyGcGpIqDEyzS46nrin6aDhp5KTJtJZzhqRQ9ONj2qfvZAlqnw79IIFaQ6QbBkvcp1MWCx5CpI+SH3caAW3KzONnn5VwCwmoCzHHXFLi+Xxfp3NjAk5iB87W/1ZpvHeDcjjR1pCQfQsITMRHd0/DCB7d0mk0z3M1QLpaJDFDZ0/cNqYpZYJy7rlj05TIT9+t+dF55CS9ODG6+ckPhAaD35YDIhp5C/f4hwBJ9nPLX6kS5YjWfIE0BI9tYnObxaeKszfYJegJxCggn3KiOKah+bwFeIB2rZXDQ36HS+Tp79zPDJRqwooKvjvXJ0O8sYQIouPgOmTM3p19x2L3mbTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G6I/whi14GuBMWM1UcH8n1xjUzpiDqD+1iO9u21AJvw=; b=ZK8AnW3FDf5vb+jVFTAW6PDz3AuSKHrP6VwL61Nq8w4KHgqWjPFrvPZaHZ+rrq4TZt7lB40MWirh2cFvGAIlIgTwJwO584QkOKlUHJJZSBZmp0mcK1/YFGjK9lGEjQOvA0bM3Lrgg3aJRAbueSE8MRGd5QbZrmtPLAQuL1xoZm8= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1884.namprd11.prod.outlook.com (10.175.91.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.17; Mon, 9 Dec 2019 10:20:05 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::9039:e0e8:9032:20c1]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::9039:e0e8:9032:20c1%12]) with mapi id 15.20.2516.018; Mon, 9 Dec 2019 10:20:05 +0000 From: To: , , CC: , , , , , , Subject: [PATCH v3 3/4] i2c: at91: remote default value initialization Thread-Topic: [PATCH v3 3/4] i2c: at91: remote default value initialization Thread-Index: AQHVrno5vwZNe+GgDE+ENghifq2hAQ== Date: Mon, 9 Dec 2019 10:20:05 +0000 Message-ID: <1575886763-19089-3-git-send-email-eugen.hristev@microchip.com> References: <1575886763-19089-1-git-send-email-eugen.hristev@microchip.com> In-Reply-To: <1575886763-19089-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: en-US, ro-RO Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR02CA0039.eurprd02.prod.outlook.com (2603:10a6:208:d2::16) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) x-mailer: git-send-email 2.7.4 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fa5b36d1-abc2-48fb-e9b2-08d77c915bd6 x-ms-traffictypediagnostic: DM5PR11MB1884: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 02462830BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(366004)(39860400002)(136003)(189003)(199004)(54906003)(110136005)(36756003)(186003)(2616005)(26005)(2906002)(316002)(6506007)(478600001)(6512007)(107886003)(64756008)(66556008)(66946007)(8676002)(81166006)(81156014)(71190400001)(5660300002)(71200400001)(8936002)(4326008)(6486002)(66446008)(52116002)(305945005)(66476007)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR11MB1884;H:DM5PR11MB1242.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lEE3d15Qo+FdCZ32PkYw+/xhAfTOvSlr0OqGIJ5Tj3+S729fZ+1k2Msrcl1xf1SUZ20d7CbOZPEKjTCN/WED+G+1Z0hpJR3u1r2vFxXbvUrhNtKHKmTrSulIIQwC9DEy/Vr2vBzz3UqgxLPGGILzuipavLCVTkf8uRZmhGPKB+jLYGxxEWBEq0+qZRUckizNqudy7cKwZPlpGiolTBP0iobnZB9l4ZUmNM+ho/3SpM2IKMOPTXpcJAxUnzlbm1HEzpyS4PTnV47euiaRPmKANYyjgUihHMlHBySOYLvX2aCozx1MMdn+B6tmVHkPuyFjLRe8e4ClbsknTw5WxbiihkWdKTqjEWSs4T8iuRRHFMCtZR+3ipJJCNeMpZbZlBdbg/ZRTlvPU9K2W/0PwWu4BZ9fjGLsftyJjHS85kKY7htE+bwKWRDo7Fx6Ombj1x8h Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: fa5b36d1-abc2-48fb-e9b2-08d77c915bd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Dec 2019 10:20:05.1636 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wUelgepd+DgGSLdQYiEmLoyDxKrkkSWMOYPiNabrBkeAD/KWI0RR2W3iaivHJ/aq92ezvSMmJRHGpktmqaM+oXVYh0snqezjYjsy8PGzEAU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1884 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eugen Hristev Platform data structs are initialized by default with zero values. Thus it becomes redundant to initialize them manually to zero (false). Remove extra false initialization for field members in structs. Suggested-by: Wolfram Sang Signed-off-by: Eugen Hristev Reviewed-by: Ludovic Desroches --- drivers/i2c/busses/i2c-at91-core.c | 39 ----------------------------------= ---- 1 file changed, 39 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at= 91-core.c index 5137e62..3da1a8a 100644 --- a/drivers/i2c/busses/i2c-at91-core.c +++ b/drivers/i2c/busses/i2c-at91-core.c @@ -66,55 +66,26 @@ static struct at91_twi_pdata at91rm9200_config =3D { .clk_max_div =3D 5, .clk_offset =3D 3, .has_unre_flag =3D true, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata at91sam9261_config =3D { .clk_max_div =3D 5, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata at91sam9260_config =3D { .clk_max_div =3D 7, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata at91sam9g20_config =3D { .clk_max_div =3D 7, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata at91sam9g10_config =3D { .clk_max_div =3D 7, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static const struct platform_device_id at91_twi_devtypes[] =3D { @@ -142,23 +113,13 @@ static const struct platform_device_id at91_twi_devty= pes[] =3D { static struct at91_twi_pdata at91sam9x5_config =3D { .clk_max_div =3D 7, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, - .has_hold_field =3D false, - .has_dig_filtr =3D false, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata sama5d4_config =3D { .clk_max_div =3D 7, .clk_offset =3D 4, - .has_unre_flag =3D false, - .has_alt_cmd =3D false, .has_hold_field =3D true, .has_dig_filtr =3D true, - .has_adv_dig_filtr =3D false, - .has_ana_filtr =3D false, }; =20 static struct at91_twi_pdata sama5d2_config =3D { --=20 2.7.4