From patchwork Sat Mar 27 18:28:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Chi X-Patchwork-Id: 410448 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D602DC433DB for ; Sat, 27 Mar 2021 18:29:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A4BC619B1 for ; Sat, 27 Mar 2021 18:29:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbhC0S2W (ORCPT ); Sat, 27 Mar 2021 14:28:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhC0S2P (ORCPT ); Sat, 27 Mar 2021 14:28:15 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3BC7C0613B1 for ; Sat, 27 Mar 2021 11:28:14 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 131so14284739ybp.16 for ; Sat, 27 Mar 2021 11:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=VH7MRJ1vre+Uw1HlQjSKaTYIPCkbY8m60uQBpBYbP/s=; b=tVzi/HsyDPBzK7b7D5sSI8+qnAkLGdESie3uAVLPGJt6/ztfkg+KaTU7GXxsbtVM0e aoQFq5SZf5cQbqBByv3HJOIzh5PChg7I//fvfEsIq+KNTnTBXgezXJLFWLBqifBls6R8 w0fcmk0OteSKmRa9a4FP7lZ52C4ptaDvXtvS6+wKelEGiO0rU+Gye7tqcXkRZvPvx0ow Fbtta1OoBk7KrcDkvw/1iknFUsDgWnTx5wlQIooV8LumqkMV5nGEfl1tpKnOL7tHjDiw Ya6DC2bklP9D1FtJKGI0MdxNV5P10X5z/cLuoiNUDTEI2T30vWth3lQKinCTqPAGKSUF netg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=VH7MRJ1vre+Uw1HlQjSKaTYIPCkbY8m60uQBpBYbP/s=; b=Ih62eK+Rq4Aakxt7tY+uCORvL+MdIxZ74d3wnTbsJH1CHdZdRDJd5usnnTFaOuT5b+ CcXyS5qcXpJCxW3spzw86AM5h4aqUT5TKrAD49fYbpblsX/QECs6xqTO4BqOWkwb7dGA 9ta7KkakDLB2Ck8YEp7IbYpzTJ0UMp25szx5bn1Fq5l4FG47vVdpqBF4/9ohKlfJRrhL fr3Tklwb1tX3DYXpNMDX9Vytr6s2Kgcamj+SEqRSYFoAa5QOzwB0kcJqLRCXUZtHWxL2 7K8kvmdbZ3W7/N/b8XqNLh28D08rfw2cXJahUiADhP+7L82SIWOmcXyMNhiVCbWP3Dxd 2kEQ== X-Gm-Message-State: AOAM532ZlrEVRLM1W/mxurDodPp2nqWRMqnI9KXhMnG1OS272ADF26QE MRWh6W5Ay9DsEPKpbVcHLOLP5W3n118= X-Google-Smtp-Source: ABdhPJzqiOHaN95+QvY5fjzMHXmrr8NFemuU9fTBYIFot5Owdjy6/dB6B0qJTck+ZJg22AzQew9lc3qrH9A= X-Received: from raychi.tao.corp.google.com ([2401:fa00:fc:202:493c:e5b:69c:54cb]) (user=raychi job=sendgmr) by 2002:a25:384e:: with SMTP id f75mr27889080yba.462.1616869693895; Sat, 27 Mar 2021 11:28:13 -0700 (PDT) Date: Sun, 28 Mar 2021 02:28:07 +0800 Message-Id: <20210327182809.1814480-1-raychi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [PATCH 0/2] modify power_supply usage in dwc3 From: Ray Chi To: balbi@kernel.org, gregkh@linuxfoundation.org, sre@kernel.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kyletso@google.com, badhri@google.com, Ray Chi Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Currently, the power_supply usage in dwc3 is wrong. In addition, there is a build error when CONFIG_POWER_SUPPLY is not enabled. Therefore, these patches will fix the problems. Ray Chi (2): usb: dwc3: gadget: modify the scale in vbus_draw callback power: supply: Fix build error when CONFIG_POWER_SUPPLY is not enabled. drivers/usb/dwc3/gadget.c | 2 +- include/linux/power_supply.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)