Add missing SPDX identifiers

This commit is contained in:
Tim Crawford
2021-02-22 13:11:55 -07:00
committed by Jeremy Soller
parent 3e742b0da7
commit 3e154d7f00
19 changed files with 40 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only
set -e set -e
cargo build --release --manifest-path tool/Cargo.toml cargo build --release --manifest-path tool/Cargo.toml

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only
set -e set -e

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
#include <board/flash.h> #include <board/flash.h>
#include <board/keymap.h> #include <board/keymap.h>

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use hidapi::HidDevice; use hidapi::HidDevice;
use crate::{ use crate::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use hwio::{Io, Pio}; use hwio::{Io, Pio};
use crate::{ use crate::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use std::{ use std::{
fs, fs,
io::{ io::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
const SMFI_CMD_BASE: u16 = 0xE00; const SMFI_CMD_BASE: u16 = 0xE00;
const SMFI_CMD_SIZE: usize = 0x100; const SMFI_CMD_SIZE: usize = 0x100;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use std::{ use std::{
io, io,
net::UdpSocket, net::UdpSocket,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use crate::Error; use crate::Error;
use downcast_rs::Downcast; use downcast_rs::Downcast;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]
use alloc::{ use alloc::{
boxed::Box, boxed::Box,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
/// Errors returned by operations /// Errors returned by operations
#[derive(Debug)] #[derive(Debug)]
pub enum Error { pub enum Error {

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
/// Parses firmware information from a firmware ROM /// Parses firmware information from a firmware ROM
pub struct Firmware<'a> { pub struct Firmware<'a> {
pub board: &'a [u8], pub board: &'a [u8],

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use crate::{ use crate::{
Error, Error,
Pmc, Pmc,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
//! Library for accessing System76 ECs //! Library for accessing System76 ECs
//! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec //! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec
//! object can be contructed, which exposes the command interface. //! object can be contructed, which exposes the command interface.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use clap::{Arg, App, AppSettings, SubCommand}; use clap::{Arg, App, AppSettings, SubCommand};
use ectool::{ use ectool::{
Access, Access,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use hwio::{Io, Pio}; use hwio::{Io, Pio};
use crate::{ use crate::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use crate::{ use crate::{
Error, Error,
Timeout, Timeout,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
use hwio::{Io, Pio}; use hwio::{Io, Pio};
/// Super I/O interface provided by LPC ECs /// Super I/O interface provided by LPC ECs

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT
#[cfg(feature = "std")] #[cfg(feature = "std")]
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};