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

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

commit 077fbfb5c84f3a3b5f0f10f47d1d9c6d378ca591
Author: yangsong8 <[email protected]>
AuthorDate: Wed Nov 11 17:49:54 2026 +0800

    drivers/ioexpander/pl061: add SPDX and the missing pl061.h includes
    
    Add the SPDX license identifier to pl061.c and pl061.h like the other
    ioexpander drivers, and include ioexpander.h and stdint.h in pl061.h
    so that it can be included on its own. Also replace the C++ comment
    after the include guard.
    
    Assisted-by: Kiro:claude-opus-5-5
    Signed-off-by: yangsong8 <[email protected]>
---
 drivers/ioexpander/pl061.c       |  2 ++
 include/nuttx/ioexpander/pl061.h | 13 ++++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/drivers/ioexpander/pl061.c b/drivers/ioexpander/pl061.c
index def987116af..38e419260a3 100644
--- a/drivers/ioexpander/pl061.c
+++ b/drivers/ioexpander/pl061.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * drivers/ioexpander/pl061.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/include/nuttx/ioexpander/pl061.h b/include/nuttx/ioexpander/pl061.h
index 3996e17e271..f86df0b4b7e 100644
--- a/include/nuttx/ioexpander/pl061.h
+++ b/include/nuttx/ioexpander/pl061.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * include/nuttx/ioexpander/pl061.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
@@ -21,6 +23,15 @@
 #ifndef __INCLUDE_NUTTX_IOEXPANDER_PL061_H
 #define __INCLUDE_NUTTX_IOEXPANDER_PL061_H
 
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <nuttx/config.h>
+#include <nuttx/ioexpander/ioexpander.h>
+
+#include <stdint.h>
+
 /****************************************************************************
  * Public Function Prototypes
  ****************************************************************************/
@@ -35,4 +46,4 @@
 
 FAR struct ioexpander_dev_s *pl061_ioe_initialize(uintptr_t base, int irq);
 
-#endif  //__INCLUDE_NUTTX_IOEXPANDER_PL061_H
+#endif /* __INCLUDE_NUTTX_IOEXPANDER_PL061_H */

Reply via email to