Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3522889ybi; Tue, 18 Jun 2019 02:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxq8nLBdp9dAohKJGOHJb1VKBnjVKFPjG6cRkifSRNx69OpqktrvNFaQHUf8LkyTJvIuqR X-Received: by 2002:a17:90a:3724:: with SMTP id u33mr3925410pjb.19.1560848874858; Tue, 18 Jun 2019 02:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560848874; cv=none; d=google.com; s=arc-20160816; b=DAP2gQmzBV+d9bcr/JBmaHiYUG7BwEeThUyHYUFUsa3tqlQNzv3SAzkvJwhiUr+c6U z/WbyFGlUWXQMGGLNKZGinKREPUEJ27tG41XB9dJjK/hUzDz/0fZ+uzCx5Gtes4jfePI trZEyNJ8twZBINOgjCuKd40jML+PcZLwEXaKKhca/w/YWDbhXHVUBDyNnha+JxmvMGCa lGe4XkztFBtGKS3yA2e1ML4PEGDuextyJevWL+mnDhDaPAsmB8Eu0BbuhPdXcTGTu7bi fUwLpu6LQ5Yxuq8RlCkf0m/3xrF7Kc7sDYCpUwxzSjJn8P4dDw8GqNXekr4+quuMmz3o x46A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=CMPNUPJ+sucTjrSA08r5a1k1PO9yTaTN+0tJ65/5xGE=; b=CFknIHknWCarlsAayHRzdbnp9/mMozF/mGmKBk0OOyFwGIuJ1GUoeBb2GMh5r++P1m pgmuvPwpJ5OvKkLZa2OuvFSkLlXUbc+dZ4JTCYCb9kt7MsfABHsC+5ctx3Cq8WCFlYSG din4tXjTQwFJrp6CYbnUz5VkKGb/mz5aFqWOM54c33IjOymo47/2JYViEWtnho8CJpSV qzLrwBhwjGWxQcJN3LvaaBPD7f2WmzmVzOx0eRO7JLTcLlFx4vsuBt/WESAKru/p5uYk mM7/88i7Pg4xmO0etzrhh9qCx1ZgCpx34Ij62ywVCcbR7uRcmjmSS7N/+YC3pmRHI4vf 2+Tg== ARC-Authentication-Results: i=1; mx.google.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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si11963103plt.387.2019.06.18.02.07.39; Tue, 18 Jun 2019 02:07:54 -0700 (PDT) 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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbfFRJHS (ORCPT + 99 others); Tue, 18 Jun 2019 05:07:18 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60006 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728965AbfFRJHR (ORCPT ); Tue, 18 Jun 2019 05:07:17 -0400 Received: from laptop.home (unknown [IPv6:2a01:cb19:8ad6:900:42dd:dd1c:19ee:7c60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aragua) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B0ABF260A33; Tue, 18 Jun 2019 10:07:15 +0100 (BST) From: Fabien Lahoudere Cc: kernel@collabora.com, Fabien Lahoudere , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/8] iio: common: cros_ec_sensors: clean code Date: Tue, 18 Jun 2019 11:06:35 +0200 Message-Id: X-Mailer: git-send-email 2.19.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop redundant initialization previously set in cros_ec_sensors_init Signed-off-by: Fabien Lahoudere --- drivers/iio/light/cros_ec_light_prox.c | 2 -- drivers/iio/pressure/cros_ec_baro.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c index 682dc19c2bf3..73f5dcbda0d5 100644 --- a/drivers/iio/light/cros_ec_light_prox.c +++ b/drivers/iio/light/cros_ec_light_prox.c @@ -179,8 +179,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev) indio_dev = platform_get_drvdata(pdev); state = iio_priv(indio_dev); - state->core.type = state->core.resp->info.type; - state->core.loc = state->core.resp->info.location; state->core.info.read_raw = &cros_ec_light_prox_read; state->core.info.write_raw = &cros_ec_light_prox_write; diff --git a/drivers/iio/pressure/cros_ec_baro.c b/drivers/iio/pressure/cros_ec_baro.c index 9d3745bc2fba..f8107a8b8e72 100644 --- a/drivers/iio/pressure/cros_ec_baro.c +++ b/drivers/iio/pressure/cros_ec_baro.c @@ -125,8 +125,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev) indio_dev = platform_get_drvdata(pdev); state = iio_priv(indio_dev); - state->core.type = state->core.resp->info.type; - state->core.loc = state->core.resp->info.location; state->core.info.read_raw = &cros_ec_baro_read; state->core.info.write_raw = &cros_ec_baro_write; -- 2.20.1