From patchwork Wed Oct 30 05:26:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3113101 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E1BFE9F3E2 for ; Wed, 30 Oct 2013 05:26:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31572201DC for ; Wed, 30 Oct 2013 05:26:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 499192016A for ; Wed, 30 Oct 2013 05:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742Ab3J3F0x (ORCPT ); Wed, 30 Oct 2013 01:26:53 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:32951 "EHLO mail-bk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732Ab3J3F0x (ORCPT ); Wed, 30 Oct 2013 01:26:53 -0400 Received: by mail-bk0-f44.google.com with SMTP id mx11so270266bkb.17 for ; Tue, 29 Oct 2013 22:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=9bi0NWz/on9Y45kLraSrQSU7CBOpFGDO6OgezgOg37U=; b=p3ldHIzsfQnNlBRtvg+AxVvqD/77c1xd7tj0m24r+QfOijBe86KCyy0GFmU9HY0WZZ RLG/otRDByJh7CTSeMRkfdRwOhvYusVkOFMdoKUOPsTfTkxJ6T4TYwK9PQWH0PgXbo+V 9VoG11B4kyZ9HWIAC7GdMX40DPI3dNfjXBvFd4pQ98bLHqGgbC54O4bZzP1cu8NlIOY6 EjcMAMJoNNWj7tPnb99PM++RFY56SCArUwr56kMuwsy3LFbW26Btn5tYR9uiIB+ZvlTd cyMfLECMoJ2ygfB7Wkr/Uf2SkRZ3F8hOAwrn0r8MS600gJRj5nuIldPiNqKHZ3mWVTIF TjfQ== MIME-Version: 1.0 X-Received: by 10.204.69.202 with SMTP id a10mr107405bkj.36.1383110812139; Tue, 29 Oct 2013 22:26:52 -0700 (PDT) Received: by 10.205.19.10 with HTTP; Tue, 29 Oct 2013 22:26:52 -0700 (PDT) Date: Wed, 30 Oct 2013 13:26:52 +0800 Message-ID: Subject: [PATCH -next] NFC: port100: convert to use le16_add_cpu() From: Wei Yongjun To: lauro.venancio@openbossa.org, aloisio.almeida@openbossa.org, sameo@linux.intel.com Cc: yongjun_wei@trendmicro.com.cn, linux-wireless@vger.kernel.org, linux-nfc@lists.01.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). Signed-off-by: Wei Yongjun --- drivers/nfc/port100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 8a0571e..ab7afe3 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c @@ -493,7 +493,7 @@ static void port100_tx_update_payload_len(void *_frame, int len) { struct port100_frame *frame = _frame; - frame->datalen = cpu_to_le16(le16_to_cpu(frame->datalen) + len); + le16_add_cpu(&frame->datalen, len); } static bool port100_rx_frame_is_valid(void *_frame)