Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp212904pxb; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5opDKKUPmgYLR3R6F7Y8Yc2iMjWa/aD2XQSaZugypXHLkM0UTGbnB/IPjO9FuaMEXjHB4 X-Received: by 2002:a02:9609:: with SMTP id c9mr8825894jai.118.1635521457667; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521457; cv=none; d=google.com; s=arc-20160816; b=UWuoRWoo1O8Sz8LXmOcadgqK18SF5i82DZraPnxxEqVanFvleW2+jKSL1ZpJ/fEoAr 2+x6M0spPa3xLrMDkc1X+5H28LoO+4QSDQC6syNB/99WZoPd15RPtilBfaW8/oQR6GZl oRHJfTytS3qNk/l6R81ur4ZIyphlrxF69BVL3DnflPhTP2SBLOxsY+ltBivJHX/g6iGV QNKFzi0+l3Kynoc731dS0mRdwSv9U9bW5nit/AkvR1+YMQJDzwp+8yGvVYc9XQPqDWka OiYwhot4F6dJBx8fXmAOXZCWQwknjXa8dX61uy+iqRzeQoGElEf/UQnBwcUaCZUXNLQe izJQ== 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:dkim-signature :from; bh=5NDfvnw5pKpWpcHNU6a68+Z0FN7d6FP3b3OlVLWYTNM=; b=TOmoN3/yVMMwJn+KA1Pee+AtI1SBhARzDi6OVdDrZUlgZc0l1zSvBnkCuqAmhlmhfu vPJOpqFIuxgHeATE4+S3SjYNZe5xr7rzEyHIAy+N/96S6EB3nlRyLg4yjm+gMIa4mvtn kuGuZp8XZgrlWpXu/nidj4Fq+zy63aSxPskMaGL1+qTOgZUOqjc5jZ1XLPn3wiFMZ5Dx QPEtPoI2kkssq5o8PS9VSbI38cd5V6584iH1PteY+rjbsF8wpOsP1C3tMwAZzijLByl9 32jxoKDAtbLXk3jjOUjF4cW0EXPy5/48aPm4XQbOKhNJNw1LXx/Yfk5fowdkTR8eFGQA /UJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=HkYi4Lv4; 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 ay10si2009418iob.93.2021.10.29.08.30.45; Fri, 29 Oct 2021 08:30:57 -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=fail header.i=@weissschuh.net header.s=mail header.b=HkYi4Lv4; 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 S230176AbhJ2Pbw (ORCPT + 99 others); Fri, 29 Oct 2021 11:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbhJ2Pbr (ORCPT ); Fri, 29 Oct 2021 11:31:47 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9126C061714; Fri, 29 Oct 2021 08:29:18 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635521356; bh=XxyRlnq+8Zc9pSgLZiODQgMlckpzCuye+ovfYvG2PuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HkYi4Lv4nTe7azOKDX6LqRgCI6kwsbcdj53Oi32uJql2r9PrVa6MKVHABoD0jsKji JqKG9ycRY388aRsGrCqmdxTlHtbd04lMjrWaCVF9y2gcoIdb//FmZrbcBrn0c6hj46 p/V4T+ffUXSKr8VIoM0f3a1PA6lZ26a7/StqDPLs= To: linux-input@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Srinivas Pandruvada , Jiri Kosina , Benjamin Tissoires Subject: [PATCH 2/6] HID: intel-ish-hid: use constants for modaliases Date: Fri, 29 Oct 2021 17:28:57 +0200 Message-Id: <20211029152901.297939-3-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211029152901.297939-2-linux@weissschuh.net> References: <20211029152901.297939-1-linux@weissschuh.net> <20211029152901.297939-2-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Thomas Weißschuh --- Cc: Srinivas Pandruvada Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: linux-input@vger.kernel.org --- drivers/hid/intel-ish-hid/ishtp/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c b/drivers/hid/intel-ish-hid/ishtp/bus.c index 334eac611774..e159cd1c5f37 100644 --- a/drivers/hid/intel-ish-hid/ishtp/bus.c +++ b/drivers/hid/intel-ish-hid/ishtp/bus.c @@ -350,7 +350,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *a, { int len; - len = snprintf(buf, PAGE_SIZE, "ishtp:%s\n", dev_name(dev)); + len = snprintf(buf, PAGE_SIZE, ISHTP_MODULE_PREFIX "%s\n", dev_name(dev)); return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len; } static DEVICE_ATTR_RO(modalias); @@ -363,7 +363,7 @@ ATTRIBUTE_GROUPS(ishtp_cl_dev); static int ishtp_cl_uevent(struct device *dev, struct kobj_uevent_env *env) { - if (add_uevent_var(env, "MODALIAS=ishtp:%s", dev_name(dev))) + if (add_uevent_var(env, "MODALIAS=" ISHTP_MODULE_PREFIX "%s", dev_name(dev))) return -ENOMEM; return 0; } -- 2.33.1