From patchwork Fri Aug 31 21:46:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xue Liu X-Patchwork-Id: 10584487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A9F914BD for ; Fri, 31 Aug 2018 21:46:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71FED2C44D for ; Fri, 31 Aug 2018 21:46:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E8272C512; Fri, 31 Aug 2018 21:46:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC3C2C44D for ; Fri, 31 Aug 2018 21:46:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbeIAB4L (ORCPT ); Fri, 31 Aug 2018 21:56:11 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35449 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbeIAB4K (ORCPT ); Fri, 31 Aug 2018 21:56:10 -0400 Received: by mail-wm0-f66.google.com with SMTP id o18-v6so6594743wmc.0 for ; Fri, 31 Aug 2018 14:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=GkpRXImWtgLny1yb5USzOHVCB9UbDQ7fLT8Sws/B8F4=; b=YxsEKl6tIBGjgxtCpibfR60bJVlfWfBMYTkHiAHXo4Bmt0YTdbOrkoFx+kDaPOHQ03 050KHsKWOqe+H9poTSH/fDDo3vyudPVXI2yhws5yt5xV93ZUBw6dt804AfD5+Pav3ewH GeICgXEAiW+lTwQRGbayYDAfsNFrTlx3OMw1FfVbkoMa8XayUBFXFLSsLK9/zXIq1HrO BrLEX/RZRfri04g4r9yK6qrX0975wgI2DePDi6jRxDaOnbIdX3AGaIwWXw3uItaDNgja pN6iWcIXpoRHjhp6OBp7uFCqXnHMpM5iiC36RPIGeUrc4JIN77Nl6jZa/FE9uoScpYHr u/6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=GkpRXImWtgLny1yb5USzOHVCB9UbDQ7fLT8Sws/B8F4=; b=h08M8Yw5OZS2OA+hMhJXjfyGQjLCgWauSM51pDq6dGrrOxFvv0lw1N++mPgF5X6BM7 tmDcbHzR/GdIZcUPxwXjXJzjTInNApzNmHo+NsyaMWmvxKInIEgDaSsUui+10/tW06j/ Z5IlYAaOZz2tR3C6lYOBd3Wzgr1WSQzD3PAfK3nv2utIO0O158L8sq0KCeMAbxiBhUs2 mqB6Sq7a5G5K+5FQqb5vJ7R8n2L14vU5qr8I7soQ0e82j3Rw0pSWBXiTEWK9o9+8ip+4 m4PeXCO05F5831ui2XkJa2bDE7yzm/k//1nyRL3zY3qr3a+MsNv3z6W/itU/hU15CFQR d/tg== X-Gm-Message-State: APzg51DFG/38HUGlypD9IBNY/n5ueJfo/rIK84mTF5FX3bHlhXB+uS2m Y/0EdpX6Dd86TzWnQZ92fXfBbrDj2ZI= X-Google-Smtp-Source: ANB0VdYaAy3fAJLSce3vR8v7ZfKr69biyWfLBZp6FjQIFl5CZwXOda4W4jFmh1zx/IHy9WFZWI8LXw== X-Received: by 2002:a1c:1805:: with SMTP id 5-v6mr5433785wmy.25.1535752005077; Fri, 31 Aug 2018 14:46:45 -0700 (PDT) Received: from cc-PC.fritz.box (dslb-002-200-211-021.002.200.pools.vodafone-ip.de. [2.200.211.21]) by smtp.googlemail.com with ESMTPSA id j11-v6sm8342064wrr.37.2018.08.31.14.46.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 14:46:43 -0700 (PDT) From: Xue Liu To: linux-wpan@vger.kernel.org, stefan@datenfreihafen.org, alex.aring@gmail.com Subject: [PATCH 0/2] ieee802154: mcr20a: clean and improve the driver Date: Fri, 31 Aug 2018 23:46:40 +0200 Message-Id: <20180831214642.30711-1-liuxuenetmail@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The first patch replaces the magic numer with defined constants to make the IRQ state more clearly. The second patch removes the struct mcr20a_platform_data since it is not widely used. Meanwhile gpiod family APIs are used to handle reset pin. Xue Liu (2): ieee802154: mcr20a: Replace magic number with constants ieee802154: mcr20a: Remove struct mcr20a_platform_data drivers/net/ieee802154/mcr20a.c | 72 ++++++++------------------------- 1 file changed, 17 insertions(+), 55 deletions(-)