From patchwork Tue Mar 29 15:24:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 555093 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 10014C433EF for ; Tue, 29 Mar 2022 15:24:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238516AbiC2P0d (ORCPT ); Tue, 29 Mar 2022 11:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238524AbiC2P0Y (ORCPT ); Tue, 29 Mar 2022 11:26:24 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 666806949D; Tue, 29 Mar 2022 08:24:40 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 37F89100015; Tue, 29 Mar 2022 15:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1648567479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yOgHMD+FKdOx4v/F+hsB7NfXbZyTvDjo+nCDRmBoyZI=; b=IpYBj8NTUEO0CYvF0EBZAJHiHRBECO1Ij3+UHVb8H2kYJ4rQF9Be4oVqxtFH0rlCASiMTW xDJf8QJLR1mmomUiFvHfZk0TJ+Ah1wgrR+OrbCfnaUXC0yfBwkl2WzD5wSJaQOkD2I7moT mIsJ4uX35gEEQhx+RbICnAvxORag/Dn0o1KkFCeV19rXY7R1no7sW67K7x17F1RvgYlR2l cxdCZ+ArEjzHV7ZLNVJR0evLBho8qa6Vj51c2AHQR9tkhJLAByi8eIO1lO4/9y6ppO2c/k bRKqd+hM4rpeU1TNsxRlnVgKxShV+aWjBRUT8ghuYzIuZtzvYyzbscfBufjJ6g== From: Miquel Raynal To: Geert Uytterhoeven , Magnus Damm , Greg Kroah-Hartman , Jiri Slaby Cc: Miquel Raynal , Andy Shevchenko , linux-renesas-soc@vger.kernel.org, linux-serial@vger.kernel.org, Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Thomas Petazzoni , Herve Codina , Clement Leger Subject: [PATCH v3 03/10] serial: 8250: dw: Change the quirks type to unsigned int Date: Tue, 29 Mar 2022 17:24:23 +0200 Message-Id: <20220329152430.756947-4-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220329152430.756947-1-miquel.raynal@bootlin.com> References: <20220329152430.756947-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Unsigned int is better than unsigned long as its size does not change between setups and we don't really need this variable to be more than a few bits wide for now. Suggested-by: Suggested-by: Andy Shevchenko Signed-off-by: Miquel Raynal --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 28f0dea2ed88..20c9ca03225b 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -376,7 +376,7 @@ static bool dw8250_idma_filter(struct dma_chan *chan, void *param) static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data) { struct device_node *np = p->dev->of_node; - unsigned long quirks = (unsigned long)device_get_match_data(p->dev); + unsigned int quirks = (unsigned int)device_get_match_data(p->dev); if (np) { int id;