From patchwork Thu Oct 12 16:18:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13419424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C72ACDB46E for ; Thu, 12 Oct 2023 16:18:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379480AbjJLQSn (ORCPT ); Thu, 12 Oct 2023 12:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235760AbjJLQSl (ORCPT ); Thu, 12 Oct 2023 12:18:41 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1BF0D8 for ; Thu, 12 Oct 2023 09:18:38 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-57de9237410so674053eaf.0 for ; Thu, 12 Oct 2023 09:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1697127518; x=1697732318; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MoG577lFLPj6Stm65rhB03R9CTrwAM1hWYfR3bj9yuY=; b=S7JMUEfHV+urguW5IMI1djDo6j0vNkxomhInLa/pPu0kCmrkSGlziFc1xBXmANZigy F6hfA9k/Ya8Zkfk+98M5RbGXyYEU19RrDPjDOMJ5+N6uLohgQ7XSSEeUsECknmBlIhsp dogQI+jw2X4B7g7qXk+Ssgx+cwzUVp7WMN6ez+KvCzS25HOgTb4LTQmpx9Q/gCgd4l6O WVekUB7VWFmCFuUlbOd3OEu3Jf+NYzXmsFvX1tynwy0lXp9XCD3rCSUmzujmIiUpuYQ1 bWAffpk9e3Os7jsYhyytUe/hkwSQfKvtSiFoX6OJyFh1YY7QZDNMxExJpROFNavRfyWm 89WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697127518; x=1697732318; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MoG577lFLPj6Stm65rhB03R9CTrwAM1hWYfR3bj9yuY=; b=bo6FjRC8qWhwK+etU4uI5EUXxB/HrCBKdiRg+uC405Im8noYyOPWgKqlp7MylpF/JV CrLEr08HJ/dMMxRA6AKix19LSoAFqbUMq705XqJALkHH/svmqR2NPZKfs50857VmJFmv /xowJQi/nMfttB4VwQrEKZrlxW3czgLQvxWkgh3AC3GAaNC1iqc3yhT+YTbFeQhfYJbE yMnXDct/0IFbfotCWNr9tV0Bzg3U93JIRVB+dInaz0uDyeSKRCg3X/0F5z5wsMTw3fYc Yz3SvFEAC8mV5JpZri4kKA4Z7CFngyujpP7gVPTMNrv1UcnSwTvhL6tByB01R1GbPBac n0gA== X-Gm-Message-State: AOJu0Ywv7yDGU1W5kHygsPiW3U3MH/PGU7o3Cn+1xD411Yb4r/oqnx8e fkwdBckGdm7w62U75g7xTLODwvR2FYYWPLiMYASIrA== X-Google-Smtp-Source: AGHT+IFOc92yFX+49qJQbv7QqD7hfYf7CLzNLnI0ftn8sWYTPcgnhfmGlDjl0b3DkerrWH+hlZUUBg== X-Received: by 2002:a05:6870:1814:b0:1da:ed10:bcb with SMTP id t20-20020a056870181400b001daed100bcbmr26357001oaf.31.1697127517984; Thu, 12 Oct 2023 09:18:37 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id ob16-20020a056871761000b001dd63f65870sm414529oac.28.2023.10.12.09.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:18:37 -0700 (PDT) From: David Lechner To: linux-iio@vger.kernel.org Cc: David Lechner , Jonathan Cameron , Michael Hennerich , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] iio: resolver: ad2s1210: remove DRV_NAME macro Date: Thu, 12 Oct 2023 11:18:12 -0500 Message-ID: <20231012-ad2s1210-mainline-v1-1-b2ee31c0e9dd@baylibre.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231012-ad2s1210-mainline-v1-0-b2ee31c0e9dd@baylibre.com> References: <20231012-ad2s1210-mainline-v1-0-b2ee31c0e9dd@baylibre.com> MIME-Version: 1.0 X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The DRV_NAME macro is only used in one place in the ad2s1210 driver and is not really needed so let's remove it. Suggested-by: Jonathan Cameron Signed-off-by: David Lechner --- drivers/iio/resolver/ad2s1210.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/resolver/ad2s1210.c b/drivers/iio/resolver/ad2s1210.c index bd4a90c222b5..00562bc542bb 100644 --- a/drivers/iio/resolver/ad2s1210.c +++ b/drivers/iio/resolver/ad2s1210.c @@ -68,8 +68,6 @@ #include #include -#define DRV_NAME "ad2s1210" - /* control register flags */ #define AD2S1210_ADDRESS_DATA BIT(7) #define AD2S1210_PHASE_LOCK_RANGE_44 BIT(5) @@ -1509,7 +1507,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id); static struct spi_driver ad2s1210_driver = { .driver = { - .name = DRV_NAME, + .name = "ad2s1210", .of_match_table = of_match_ptr(ad2s1210_of_match), }, .probe = ad2s1210_probe, From patchwork Thu Oct 12 16:18:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13419425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6A95CDB482 for ; Thu, 12 Oct 2023 16:18:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379476AbjJLQSo (ORCPT ); Thu, 12 Oct 2023 12:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235758AbjJLQSl (ORCPT ); Thu, 12 Oct 2023 12:18:41 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61AABDC for ; Thu, 12 Oct 2023 09:18:39 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1e9c9d181d6so233728fac.0 for ; Thu, 12 Oct 2023 09:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1697127518; x=1697732318; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3NXXzp/tCwIOo0tlTvlUJI63ZzTPU3E19sORPsGfkkY=; b=T/vvgmdXuKLvNcJuBW9qvN7dVqxnT96NdbG8ZB+fVZCgeo1llGm5ph8Yuv8C3CEmNS Cvv17NYleVxz2nDuJy+T6CwpJjVe8R64QgYIxLhP48zjsY5udA8Ev0FO/Pq1pT9/Quqs Oh6quQqLHZvexuWWLFBkAB5bK2m8EA+Xzw3yf1182snU2sSOJhufQh1GrQVac0iEsJ+o p46+4Y+fs7lZz4m5CBtRGKqVO5MbOHc2AO9tPWek6OkhMwnGFTC9e40z0vtqzZ3hS2Dm aqKlz1SdFmhjf6W1Fvy5U/Vr0wCQM6xKUVJs+nmrt6BgI6Jxg7GwLnaAgLDJCMgw94Zf ysEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697127518; x=1697732318; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3NXXzp/tCwIOo0tlTvlUJI63ZzTPU3E19sORPsGfkkY=; b=F4NKEcLOluPwOHYqhKgudjlqSzdZ1vLpZc7KDpdOAGqcJTl22ldUltVQvmSO/CY8Ue HmS4FoeOVqwJXBKoXOu86dEM8ama809GnETe+I6nJpODwlBmDkZsFjeoN0dcVED3Q0Yp 2+ULs/RSsQ/nm8YqTgZ7hZ9Mq09kJ53d8ZXzjlxQ0klLEFVsKhXGYYZitQPucil6317j yB5BoMu8P0YVkBgzE5Rr/WE2wnL57BiK+NK5j1CiRfi5JEax3pJU5IFlhP31pvipDcTM Y/FVQZFbXyzqSlCAfsn/QJjcCoSq/Oyak2jGIbuiUsglw76IYdKUdnq3fhL8Yxwu4Ts1 E2XA== X-Gm-Message-State: AOJu0Yxufet0M1+Vuax04gWaoCBRhMYAPll8a84BR35Clf4q+AP6JDws daXMM3K8kVbFSKZN1VE3pgV4crXhD+LPl+Cg4lJPbw== X-Google-Smtp-Source: AGHT+IFH7kAjVghpq9S9SSJMUJIGrd94WuyWSQANISTNm1stmttQZdEQ58ccK13hWWB2JwgtitrnPw== X-Received: by 2002:a05:6870:d795:b0:1b0:649f:e68a with SMTP id bd21-20020a056870d79500b001b0649fe68amr27704676oab.25.1697127518608; Thu, 12 Oct 2023 09:18:38 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id ob16-20020a056871761000b001dd63f65870sm414529oac.28.2023.10.12.09.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:18:38 -0700 (PDT) From: David Lechner To: linux-iio@vger.kernel.org Cc: David Lechner , Jonathan Cameron , Michael Hennerich , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] iio: resolver: ad2s1210: remove of_match_ptr() Date: Thu, 12 Oct 2023 11:18:13 -0500 Message-ID: <20231012-ad2s1210-mainline-v1-2-b2ee31c0e9dd@baylibre.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231012-ad2s1210-mainline-v1-0-b2ee31c0e9dd@baylibre.com> References: <20231012-ad2s1210-mainline-v1-0-b2ee31c0e9dd@baylibre.com> MIME-Version: 1.0 X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org To be consistent with the rest of iio, remove of_match_ptr(). It does not do anything useful here. Suggested-by: Jonathan Cameron Signed-off-by: David Lechner --- drivers/iio/resolver/ad2s1210.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/resolver/ad2s1210.c b/drivers/iio/resolver/ad2s1210.c index 00562bc542bb..1bd1b950e7cc 100644 --- a/drivers/iio/resolver/ad2s1210.c +++ b/drivers/iio/resolver/ad2s1210.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include @@ -1508,7 +1507,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id); static struct spi_driver ad2s1210_driver = { .driver = { .name = "ad2s1210", - .of_match_table = of_match_ptr(ad2s1210_of_match), + .of_match_table = ad2s1210_of_match, }, .probe = ad2s1210_probe, .id_table = ad2s1210_id,