Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp240523pxk; Thu, 24 Sep 2020 04:41:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiocLTdbE4LvV4UlAeIfPQdaNz+Xcn8HRG5wsrLEof3vCwom/uTClz2SVivYNuUyhlAe0e X-Received: by 2002:a50:a694:: with SMTP id e20mr566054edc.114.1600947697869; Thu, 24 Sep 2020 04:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600947697; cv=none; d=google.com; s=arc-20160816; b=nTmYLDmyiwUiixT43HBPaFGOjg6yW0rT9cJPDxl24BxuQ8ZVesKVanGjVb51jvcGLA iaQc1KkAseBeaXsLaB5PzVdz1TGYrA6IQMTKe/b6Zs/yM8l7txpTwAt3Zk8NmdNx7su5 bj2FjZFqGATJ1NOyJejs16xQ+CbMZ2X0Z6RJSQoKSVWMA1U04O0wQvChuI4rM09YuhtR jppFlbEfJGrWwsmhWmnEUs9jlyc7SD/1H+Tib+Pz9yMgJM11vyDakdig5SwPbz3upWQ9 vD+qlkAamks/gkIrOwK6FlVXLYof+1DmfukS28AIG9XBurUFXCrwdb27BNv6JHGxkCMc Wgvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GvwtjhQCT62SYD+p95TQrRZLwK1iHvfvwiDgAUHz68Q=; b=TSqO3bL1V8LrZXUY3RgekYIOyVgVVKlVIemSePdUjQqLGDe7x+l+Kv5UIMv1nK0uWE NC9xPYWqHHg0H2331FdWlWwX8XxtQKLwC9A475pNB0STthlFNB+/kwQ30xLQwDPCsM88 +05odfXeZCv3ksw0spNr4vlFuv2Es5q73f09aRj/pLC4fk/ZnysPiDPm3QxpiNkCKgjy y9uILy17JSFTQz4ZhzVU3K2Y6Lm45RwHReUB0fpIPFrLSu5ZIl3jGTDC8+5KVTQmaArO XVRVe7JlRHRpMR3fH5w9Va7ZBaOCczIStTW15KIPyAK4qbeU3iM6YQpRZv3jT/9V+ZE+ 7O+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=vYnow2xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1799799ejb.541.2020.09.24.04.41.14; Thu, 24 Sep 2020 04:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=vYnow2xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbgIXLj0 (ORCPT + 99 others); Thu, 24 Sep 2020 07:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbgIXLiy (ORCPT ); Thu, 24 Sep 2020 07:38:54 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF65C0613D4 for ; Thu, 24 Sep 2020 04:38:54 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id d4so3174442wmd.5 for ; Thu, 24 Sep 2020 04:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GvwtjhQCT62SYD+p95TQrRZLwK1iHvfvwiDgAUHz68Q=; b=vYnow2xo4MYAUf/BsQL3RQk7QB/rzmXGEs65ivwKMagzOf9IdjsWnroM4ll5Fr4k9t rpb5kNVC9Y4lUpbKJPZwp8zR8H/a4IIgkj6ehpG13bgwesam7LscKUz/wuF8pbhT0hPQ roUyq0wDT1iCuTcUHMl0/cTP3TSYMdNCfkC5HurdRDalG/FvookPRU71/7hmfV8RTe3p D5ZcQ3YQcLpsDp/stNL0L2xL5OvIo9/AxUawIka0BQoet1uEywxCiNYsQFIPRwrwJ6/c Ta0IjLq3U4SE+mg54TFXeVOyTonMIHf7UqRGEkwL428eKSR4NDakKkzlt+uG2LekdIhc GRxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GvwtjhQCT62SYD+p95TQrRZLwK1iHvfvwiDgAUHz68Q=; b=CjA+jB75H+mLKgfApeu0ivgNjk+Om51QKUv1uaNlO4jPmrFM6fY3QJ4CedM/FUzKTX EvSfyaD5YT6YEcLRcpu3DZJQQypuBEqqXUD6m05EbtRWchEky3bB3XlITTCr+TzPh/RR TP70RB3ftf1qEp/dxgDWhzs6/9j5e3yNsdcojwd+6pSHfEkGMMl/1peRKFnqnkug72nJ PskX1oFukcCO6eFR4tb3TmTonM4RImHNIzv58TBpYBGM7ztaan2p/G0PN8p6HmdG8HiU xu4sOr/ivREODir/RO9sorAzhJIcefURhL7qMZ8ZCvPKUToVKfQBC0KEcY29H+dzXOk6 UW3w== X-Gm-Message-State: AOAM532KW87A6UoORBdFtgVGNaEvtus0h0UIIwvVotKBF4NtHhnvDp7R Hm8uV3Jl5yuN62nH4J9oKQT6Ww== X-Received: by 2002:a7b:c4d3:: with SMTP id g19mr4458961wmk.165.1600947532906; Thu, 24 Sep 2020 04:38:52 -0700 (PDT) Received: from debian-brgl.home (lfbn-nic-1-68-20.w2-15.abo.wanadoo.fr. [2.15.159.20]) by smtp.gmail.com with ESMTPSA id y207sm3390133wmc.17.2020.09.24.04.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 04:38:52 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Jonathan Corbet , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 4/9] gpio: mockup: use KBUILD_MODNAME Date: Thu, 24 Sep 2020 13:38:37 +0200 Message-Id: <20200924113842.11670-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200924113842.11670-1-brgl@bgdev.pl> References: <20200924113842.11670-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Drop the definition for the driver name. Let's use KBUILD_MODNAME for the log format and use the "gpio-mockup" value directly in the only place where it's relevant: in the name of the device. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index c5092773afd8..90a1d6c2775f 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -21,7 +21,6 @@ #include "gpiolib.h" -#define GPIO_MOCKUP_NAME "gpio-mockup" #define GPIO_MOCKUP_MAX_GC 10 /* * We're storing two values per chip: the GPIO base and the number @@ -31,7 +30,7 @@ /* Maximum of three properties + the sentinel. */ #define GPIO_MOCKUP_MAX_PROP 4 -#define gpio_mockup_err(...) pr_err(GPIO_MOCKUP_NAME ": " __VA_ARGS__) +#define gpio_mockup_err(...) pr_err(KBUILD_MODNAME ": " __VA_ARGS__) /* * struct gpio_pin_status - structure describing a GPIO status @@ -500,7 +499,7 @@ static int gpio_mockup_probe(struct platform_device *pdev) static struct platform_driver gpio_mockup_driver = { .driver = { - .name = GPIO_MOCKUP_NAME, + .name = "gpio-mockup", }, .probe = gpio_mockup_probe, }; @@ -572,7 +571,7 @@ static int __init gpio_mockup_init(void) properties[prop++] = PROPERTY_ENTRY_BOOL( "named-gpio-lines"); - pdevinfo.name = GPIO_MOCKUP_NAME; + pdevinfo.name = "gpio-mockup"; pdevinfo.id = i; pdevinfo.properties = properties; -- 2.26.1