clang-format in src/chipset/

This commit is contained in:
Jasmine Iwanek
2022-09-18 17:12:38 -04:00
parent d044f8d1f6
commit 3753a9f8b2
49 changed files with 15766 additions and 15762 deletions

View File

@@ -16,7 +16,6 @@
* Copyright 2020-2021 EngiNerd
*/
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
@@ -35,8 +34,8 @@
typedef struct
{
uint8_t reg_065;
uint8_t reg_067;
uint8_t reg_065;
uint8_t reg_067;
uint8_t reg_069;
} olivetti_eva_t;
@@ -50,11 +49,11 @@ olivetti_eva_log(const char *fmt, ...)
if (olivetti_eva_do_log) {
va_start(ap, fmt);
pclog_ex(fmt, ap);
va_end(ap);
va_end(ap);
}
}
#else
#define olivetti_eva_log(fmt, ...)
# define olivetti_eva_log(fmt, ...)
#endif
static void
@@ -98,7 +97,7 @@ static uint8_t
olivetti_eva_read(uint16_t addr, void *priv)
{
olivetti_eva_t *dev = (olivetti_eva_t *) priv;
uint8_t ret = 0xff;
uint8_t ret = 0xff;
switch (addr) {
case 0x065:
ret = dev->reg_065;
@@ -115,7 +114,6 @@ olivetti_eva_read(uint16_t addr, void *priv)
return ret;
}
static void
olivetti_eva_close(void *priv)
{
@@ -157,15 +155,15 @@ olivetti_eva_init(const device_t *info)
}
const device_t olivetti_eva_device = {
.name = "Olivetti EVA Gate Array",
.name = "Olivetti EVA Gate Array",
.internal_name = "olivetta_eva",
.flags = 0,
.local = 0,
.init = olivetti_eva_init,
.close = olivetti_eva_close,
.reset = NULL,
.flags = 0,
.local = 0,
.init = olivetti_eva_init,
.close = olivetti_eva_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
.force_redraw = NULL,
.config = NULL
};