Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1235192lqd; Thu, 25 Apr 2024 09:22:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtnldwA3VHWH5oUxsFLcS8nl4L5yXKqzJprVsTlPC4CLtx8z6Sam8EL9YLvTwTkTlTQVBDeBmnDzplrvnQi3rX9MDHvMOg5aaGCtIGnA== X-Google-Smtp-Source: AGHT+IFWVyDcbeiA3Q4yzHM1mUWWVsrTATH7d0Nk5dT0f3luS54PvkTD/3KTIP1PEZgjQcPxGNsB X-Received: by 2002:a05:620a:211b:b0:78e:d152:8cc4 with SMTP id l27-20020a05620a211b00b0078ed1528cc4mr64932qkl.26.1714062151444; Thu, 25 Apr 2024 09:22:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714062151; cv=pass; d=google.com; s=arc-20160816; b=r/jXbzFlm0zavbOymiD7R0+vZRhetdNtyzCNWdWXt98gIBhFMekKL4nW7V4bLlbCvg gPWiZucv7dRNdxTHsKicTE+ASLncApKZJXIyFLVtyApi7H4cw1O/7ruDM6k3ll/g8sqt 41pcs4R01/9oFwQc2dIhUn4Uq404Dx1yjvi8DrXyhwQnttaCHnBZFkEZFsev6YRHwVhj y+gmaNNPSZe7WAFARwr7KG00ODW7JXOOz1nyCqaGbRedRNWjOe+40aJefEDsqCT/g3DL M9oL/TuzdWXY0LpKYYSQjWEBk5YfYso4WlB/m7bxhFYz0GLLc+G3cDNbtPQKDXqXOjvH 3ETw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=rT8CtB6u0TXgJ8oVknrhHpM21jHgaIduXHq4luZbdGI=; fh=WSI/DAoGjfyUeerFMSsPoeeefrio9lUN9V5rAL/NoX4=; b=gQBDmruW68Hy7yZ3YnX8sY9mxzeehMUHpmZbvgIEpRdCrGPFKjfgvNc9BuHPh7M2us Tla66+ZNLiV+pGb9AoQTZeU0i3qaGUx21Kv3KwTJsSUp744P7GgYlvaS2ZF86ntaZohZ wPTFJdihdI0eP5swbAbMMrXiq0aQxjHBfi46OS2dJQ9wYBgTfTUn4YNDUPvupEaz1PVZ qgT5vz/U9fLlZgjHgBo1yzX/TIQDGz0OfDZPeTxIL331dcaLBMMhVvzeg2LKCO9oNjX+ zl00rvhwXKDKIrmJ9lHtvg0Iu9+xdoUqDQBXyaMrwET3do3hxrzS9u9ASn7XQVsJvvF3 Rv+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uOAxSmAM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158886-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dw10-20020a05620a600a00b0078f19966a70si16901886qkb.119.2024.04.25.09.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uOAxSmAM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158886-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C91861C230A5 for ; Thu, 25 Apr 2024 16:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B1FE14D2B7; Thu, 25 Apr 2024 16:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uOAxSmAM" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8917114D2A8 for ; Thu, 25 Apr 2024 16:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714062141; cv=none; b=jhQ81JNX8SUOFOuJPB9uoL3L3zsIJIjTuDMFwAQDR7hd2AS96GIOmUNO0Ti8rGT4WiflT3Xj7wHqK9QlYgJG+kyJVbDUMf9JFlR0QqsnLXsgNqUuxIjTdNpcA65TACHmmcNsvjtTLUJS7Yu6p5eDiplWDvRogJYEpWZhqpgY59s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714062141; c=relaxed/simple; bh=ieQm+pX9ecLlYdE6XA9WVavDiEeCE981RVxr7pvK7dE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GVKS6siwIGn8UWWXOL8eba8+hYudTHIvqm0VQqTDznaeAbpJ5gMVIBqepPT3rsIcYLj/TmRyeN6/tXVRnQUiMO0rED2eDZJMxHQx6rxK0lqxIfc7GLawIR0bmtpX4S3CcF3FoY8HYhdmJ+bIjAKiNEuycfejon+4/pDlNaTTOcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uOAxSmAM; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-de54c2a3eeaso1278442276.1 for ; Thu, 25 Apr 2024 09:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714062137; x=1714666937; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rT8CtB6u0TXgJ8oVknrhHpM21jHgaIduXHq4luZbdGI=; b=uOAxSmAMIf5P0Bh2TTi1QvHnOHZx8YQ+p22It6c/7xS3zUVej5a6Fu+TgaF8LHbahL OVThoZ/2s5urHC6fZhKo3dTDHg60LmhJInS3W781fTkpHkPz6+ySC4wIfY/MYQU7sQVZ J8HJAishJ2x1qufq7wF75kQqKF3ajiK7ifoKs4Bhri51qwqaEfutx5xrCi9P4Sc82TQb 8rX0Z01ksCp9uSAEAW4iz8X1+eiiZymceyPzcQ6oYE1775kK0hQS8zTCIdipqGqw5oyg gUdPUc4kf4C4t5ir++xAqvZAJeZQAsRrDtOdoKt0YXFVpvD+SWtyUKA/8gzdNowjnlZ1 A+5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714062137; x=1714666937; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rT8CtB6u0TXgJ8oVknrhHpM21jHgaIduXHq4luZbdGI=; b=hSs4NGk7MMXeR48KylbtltxEOyOj4necq34LOnQW0cUaqJ+9XfBe2NL1CR7yvy/PDd 09I8FCPqPSpUmiPYtPRwjW2Z7Ww6Jddcq0hbGXZXXPr6c46z0D2ntpL+GiepMozSLGVi B208jGHfLZ0br/rS536gfZ665lVkEplNizuaBc0AGDXQnVZm43q4rulTMGNlPMyECrs0 lmu9eZAI817VBc+nSBevt6yWdY/LX3k+oEhKcT1bRA6tSGCc4l63LCcjvhEfxSxzsSc6 Bg5D/UyXP/O/gP5DGgfxu9ZByY1Eox0LGn3NdaPBiSZbOdCr78Z1yFRstNlkOebafDIJ B4cg== X-Forwarded-Encrypted: i=1; AJvYcCVeQy2qzUG2TPpKc3xD6Mn4iJu1ZKItAYe4xkKks+hvpZFgyF5BlW/dFLtvaoUR0JKWojv74HiGnM7gyq0xrkOl1UPcZ16//TfbWn0I X-Gm-Message-State: AOJu0YyjcyqYdmaiLPpLU8PtXKPBGfVj5aNphb32CmM0UmiNSLkcCPyA WbMiweHyRWXIg7z3FBihDTtSBLFaD2HAW1x6sukBNrt19zmLBqsIdjjRl05d++5UvT9/2Ax5Bzj 2/VCsHgdYhGkI/EY3wEOg2XGYXwTYgKm/Ajn19nHTK4uY9oRX X-Received: by 2002:a05:6902:546:b0:dd1:40cf:942b with SMTP id z6-20020a056902054600b00dd140cf942bmr119986ybs.48.1714062137592; Thu, 25 Apr 2024 09:22:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410195618.1632778-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20240410195618.1632778-1-andriy.shevchenko@linux.intel.com> From: Ulf Hansson Date: Thu, 25 Apr 2024 18:21:41 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] mmc: slot-gpio: Use irq_handler_t type To: Andy Shevchenko Cc: Alexander Stein , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 10 Apr 2024 at 21:56, Andy Shevchenko wrote: > > The irq_handler_t is already defined globally, let's use it > in slot-gpio code. > > Signed-off-by: Andy Shevchenko Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/slot-gpio.c | 5 ++--- > include/linux/mmc/slot-gpio.h | 5 ++--- > 2 files changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/mmc/core/slot-gpio.c b/drivers/mmc/core/slot-gpio.c > index 39f45c2b6de8..8e4750558101 100644 > --- a/drivers/mmc/core/slot-gpio.c > +++ b/drivers/mmc/core/slot-gpio.c > @@ -19,7 +19,7 @@ > struct mmc_gpio { > struct gpio_desc *ro_gpio; > struct gpio_desc *cd_gpio; > - irqreturn_t (*cd_gpio_isr)(int irq, void *dev_id); > + irq_handler_t cd_gpio_isr; > char *ro_label; > char *cd_label; > u32 cd_debounce_delay_ms; > @@ -162,8 +162,7 @@ EXPORT_SYMBOL(mmc_gpio_set_cd_wake); > /* Register an alternate interrupt service routine for > * the card-detect GPIO. > */ > -void mmc_gpio_set_cd_isr(struct mmc_host *host, > - irqreturn_t (*isr)(int irq, void *dev_id)) > +void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr) > { > struct mmc_gpio *ctx = host->slot.handler_priv; > > diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h > index 5d3d15e97868..3e4d4836a2bb 100644 > --- a/include/linux/mmc/slot-gpio.h > +++ b/include/linux/mmc/slot-gpio.h > @@ -8,8 +8,8 @@ > #ifndef MMC_SLOT_GPIO_H > #define MMC_SLOT_GPIO_H > > +#include > #include > -#include > > struct mmc_host; > > @@ -21,8 +21,7 @@ int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, > unsigned int debounce); > int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, > unsigned int idx, unsigned int debounce); > -void mmc_gpio_set_cd_isr(struct mmc_host *host, > - irqreturn_t (*isr)(int irq, void *dev_id)); > +void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr); > int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on); > void mmc_gpiod_request_cd_irq(struct mmc_host *host); > bool mmc_can_gpio_cd(struct mmc_host *host); > -- > 2.43.0.rc1.1336.g36b5255a03ac >