You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/02/28 17:08:24 UTC

[incubator-nuttx] 01/07: input/djoystick: Remove the unused config field from djoy_lowerhalf_s

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit b0e6a6e0811b49d73dc676cc4849a017f835e0d9
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Feb 27 03:07:59 2022 +0800

    input/djoystick: Remove the unused config field from djoy_lowerhalf_s
    
    the private data should be done like this:
    struct xxx_lowerhalf_s
    {
      struct djoy_lowerhalf_s lower;
    
      /* Add more private data here */
    };
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 include/nuttx/input/djoystick.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/nuttx/input/djoystick.h b/include/nuttx/input/djoystick.h
index fff707f..d35f550 100644
--- a/include/nuttx/input/djoystick.h
+++ b/include/nuttx/input/djoystick.h
@@ -220,12 +220,6 @@ struct djoy_lowerhalf_s
   CODE void (*dl_enable)(FAR const struct djoy_lowerhalf_s *lower,
                          djoy_buttonset_t press, djoy_buttonset_t release,
                          djoy_interrupt_t handler, FAR void *arg);
-
-  /* Allow for storing implementation specific data to support cases where
-   * their may be more than one joystick
-   */
-
-  FAR void *config;
 };
 
 /****************************************************************************