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,