Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3015101ybl; Sun, 15 Dec 2019 00:56:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyDPjMdzminbKgyuCo+LoJeLjjR+pkBIJECThQb3zkMe2LPI9sq4TgnDueS9F9LtQ7gLI6p X-Received: by 2002:a9d:760f:: with SMTP id k15mr25398390otl.65.1576400176798; Sun, 15 Dec 2019 00:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576400176; cv=none; d=google.com; s=arc-20160816; b=uUJ81lN/KnOD7QmHVdmYdnWjgfvOo8lNAiS7R8o4eMbwuoqiSgWrcnnQjVlmtxAkVk iir4SGRMF3q/l+8pWfxJV+GIYouWhtvuj64SiRh6h3f6lQvQHuho64963hjbL3fzhN7Q CJHpr8uSl38Vi9P04tgk0DUKRtngQh0YGcOCdjIQAvil0PZnrWnt9br/XtaeHClQ2d70 SvtI9STJQ2whDPWETnCWnORCZS3/tSHOgN9E7J1YqjXyjpxW+kPGsHf++fPykV4c9ooN Bhcp2HdSrrWNmXVGLGdKZJKI6Nk3Vk1XBs0VtzDa0jpBjRT6A/QqtmFLPQfUHtdVKw9X ANog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pQP58NqJf8UCUbWyqktY2i6HJzJJJ3T5X4x/PMbfJbc=; b=Sj5w1zSpnFJlZQ4EU7aAr+pQC1qbhXFzRy4+AMN9lp3M3Fb3/HcgzdiH/SVImQ8eyt WtxJw4ALQ8gZjxU587qjMoXWCU9VgIZJnRbjeVEUDxwsbnRx2oTnJ0ijXs42LXNSijZR vbTUEw56JaYDoUD/sZ0BUOdmi7cpI5xc5P4XTYyZbs3utXw+CPK/+5bCZMhHS3qu2lte XaIFOFRL5ranzVQ8PXNQxqsIOixUHoQlg2ZlXGy5Ymg/66BfiHvxrvxKyR858/+C1j2H mksmUHtXHm6cLEE6MoemBOkzxwWO1x8nlNtNPACDxoPbPcQvlFOc08e6WgV5eJRExqJS 2wxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IkOnr9Dm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68si8973303oia.227.2019.12.15.00.55.56; Sun, 15 Dec 2019 00:56:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IkOnr9Dm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbfLOIyY (ORCPT + 99 others); Sun, 15 Dec 2019 03:54:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:40892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfLOIyY (ORCPT ); Sun, 15 Dec 2019 03:54:24 -0500 Received: from localhost.localdomain (unknown [151.66.51.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 224E420700; Sun, 15 Dec 2019 08:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576400063; bh=V1ahdnZO8ibqvXWWHwlm+MzLd9i8kZIO6TcGOWAg3c8=; h=From:To:Cc:Subject:Date:From; b=IkOnr9DmfOG+gh9h5PqSBVxCh4SccFW5LTdMMsrpJ67sXWzVLk6to37rPvEHtcoG7 Ij+2aseFOwPp3CobGmgD0V6fng92ySCjjBlTrmbSOBHNVH4Df3dNQ47gH5iqX/apOU ClsnTl/NO2d6b6G3CMP2BxH8/9O/d6fyzWHcUNCw= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com Subject: [PATCH 0/2] improve mt76 led code readability Date: Sun, 15 Dec 2019 09:54:08 +0100 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Improve code readability relying on FIELD_PREP macro for led register definitions and remove open coding Lorenzo Bianconi (2): mt76: mt76x02: simplify led reg definitions mt76: mt7603: simplify led reg definitions drivers/net/wireless/mediatek/mt76/mt7603/regs.h | 12 +++--------- drivers/net/wireless/mediatek/mt76/mt76x02_regs.h | 9 +++------ 2 files changed, 6 insertions(+), 15 deletions(-) -- 2.21.0