Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp120710imm; Mon, 21 May 2018 03:21:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZorbmGMOG+iRc62k7fvBG60SEpnGHy+A8xqT6Yn2LrGX2BKlRhtm4PQyXaGoyVAH2lHEYtX X-Received: by 2002:a63:6445:: with SMTP id y66-v6mr6852065pgb.283.1526898103116; Mon, 21 May 2018 03:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526898103; cv=none; d=google.com; s=arc-20160816; b=RWwMsWZ7hIs5lnAGPrsX6ffFGMMO9icI6MDBzqMeIAlA0Ln8L1F+EsNV0pkYp0bPiQ pkJCLMcNfhvNivm11/+svWIl8ormuEeYn26RfDX6Pke247z7a8s1jF+ruHuJ/23dyhE5 XagAqS1yal8Atr9ZdX4v2hBemN6x8xXMAXmhd6/Sbj7rV6N0hOND+TPCWXZ4DJeBUMr3 WRxxc5PjuvoxEdl13xVFKrLkJMeQntOnd8FUxPbrFQN+VkJPgGS/L2JRMPyQQkEr8f1x J9g9mrxqMrQW4eufPopMRGT/axv+Gt6r86be174CD5sxx7XsR5oPoY+6Bd6HvYWqERkj SuZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SfoBdtY8mA+/3tIwsLlVQTjbXRxzZcbphhFOU019oZo=; b=f3NnDRtCCxqiz2ofCn11ystWhdoG9b/w2BpiY+kR4bcvX0voUAkRrC9QBqsGkhsFd4 DOtWdij12+W45u8HVWNdKYRT5Ck4tV1o6Vf5uxJsAskjm3aEgAFO6x9o1+JRclLGWKas kepiL8PbI/hqYTyhvKCgdfcdixzbiSoUQTWg06CrorOKJ85ksqBX5OEbpK2FBReJiBeq wp3ww/tEgSymf4tCnoVt6kk6sZpKWloP6mxPiXuvIgpssnL48JG8eCUPuQlt94T4xL6y Wq0p+g0LbiqcqDUF+D8YPU/YYkdpLJWmW86SORLhUXhADrgIJGZ7VM37vEnlSVAcH3RT jhYw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74-v6si10562997pga.50.2018.05.21.03.21.28; Mon, 21 May 2018 03:21:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751892AbeEUKUw (ORCPT + 99 others); Mon, 21 May 2018 06:20:52 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:35615 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbeEUKUt (ORCPT ); Mon, 21 May 2018 06:20:49 -0400 X-IronPort-AV: E=Sophos;i="5.49,426,1520895600"; d="scan'208";a="327708872" Received: from palace.rsr.lip6.fr (HELO localhost.localdomain) ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 21 May 2018 12:20:48 +0200 From: Julia Lawall To: linux-i2c@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Himanshu Jha Subject: [PATCH 0/3] merge calls to of_match_device and of_device_get_match_data Date: Mon, 21 May 2018 11:49:07 +0200 Message-Id: <1526896150-27134-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org of_device_get_match_data calls of_match_device and fails if the latter fails, so both calls aren't needed. --- drivers/i2c/muxes/i2c-mux-pca954x.c | 7 ++----- drivers/iio/adc/max1363.c | 8 ++------ drivers/iio/potentiometer/max5481.c | 7 ++----- drivers/iio/potentiometer/mcp4018.c | 7 ++----- drivers/iio/potentiometer/mcp4531.c | 7 ++----- 5 files changed, 10 insertions(+), 26 deletions(-)