From: kettenis Date: Mon, 22 Nov 2021 20:19:23 +0000 (+0000) Subject: Remove unused header files and make some cosmetic changes. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ff7e2daff2f5490fa81ee5f7b3bc33fdece23a9;p=openbsd Remove unused header files and make some cosmetic changes. ok patrick@ --- diff --git a/sys/dev/i2c/pcf8523.c b/sys/dev/i2c/pcf8523.c index 6c49e05e579..9576ebec492 100644 --- a/sys/dev/i2c/pcf8523.c +++ b/sys/dev/i2c/pcf8523.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8523.c,v 1.5 2021/04/24 10:15:15 mpi Exp $ */ +/* $OpenBSD: pcf8523.c,v 1.6 2021/11/22 20:19:23 kettenis Exp $ */ /* * Copyright (c) 2005 Kimihiro Nonaka @@ -30,11 +30,6 @@ #include #include #include -#include -#include -#include -#include -#include #include @@ -189,7 +184,7 @@ pcfrtc_settime(struct todr_chip_handle *ch, struct timeval *tv) if (pcfrtc_clock_write(sc, &dt) == 0) return (-1); - /* Clear OS flag. */ + /* Clear OS flag. */ reg = pcfrtc_reg_read(sc, PCF8523_SECONDS); if (reg & PCF8523_SECONDS_OS) { reg &= ~PCF8523_SECONDS_OS; @@ -263,7 +258,7 @@ pcfrtc_clock_read(struct pcfrtc_softc *sc, struct clock_ymdhms *dt) dt->dt_mon = FROMBCD(regs[5] & PCF8523_MONTH_MASK); dt->dt_year = FROMBCD(regs[6]) + 2000; - if ((regs[0] & PCF8523_SECONDS_OS)) + if (regs[0] & PCF8523_SECONDS_OS) return (0); return (1); diff --git a/sys/dev/i2c/pcf8563.c b/sys/dev/i2c/pcf8563.c index 95f2dfe0365..02d33ff1420 100644 --- a/sys/dev/i2c/pcf8563.c +++ b/sys/dev/i2c/pcf8563.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8563.c,v 1.4 2021/04/24 10:15:15 mpi Exp $ */ +/* $OpenBSD: pcf8563.c,v 1.5 2021/11/22 20:19:23 kettenis Exp $ */ /* * Copyright (c) 2005 Kimihiro Nonaka @@ -30,11 +30,6 @@ #include #include #include -#include -#include -#include -#include -#include #include