Skip to content

Commit

Permalink
Fix lint/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gsexton committed Oct 21, 2024
1 parent 1310b95 commit a479572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bcm283x/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// Aliases for GPCLK0, GPCLK1, GPCLK2 are created for corresponding CLKn pins.
// Same for PWM0_OUT and PWM1_OUT, which point respectively to PWM0 and PWM1.
//
// For multi-pin IO, you should prefer using the /host/gpioioctl/GPIOChip.LineSet()
// For multi-pin IO, you should prefer using the /host/gpioioctl/GPIOChip.LineSet()
// functionality. It's chipset agnostic because it uses the ioctl interfaces,
// and it offers multi-pin WaitForEdge().
// and it offers multi-pin WaitForEdge().
//
// # Datasheet
//
Expand Down
2 changes: 1 addition & 1 deletion bcm283x/gpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ func (d *driverGPIO) Init() (bool, error) {
return false, errors.New("bcm283x CPU not detected")
}
if len(gpioioctl.Chips) == 0 {

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / test: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / test: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / test: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips

Check failure on line 1334 in bcm283x/gpio.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpioioctl.Chips
return false, errors.New("gpioioctl not initialized.")
return false, errors.New("gpioioctl not initialized")
}
// It's kind of messy, some report bcm283x while others show bcm27xx.
// Let's play safe here.
Expand Down

0 comments on commit a479572

Please sign in to comment.